From 1ac0a1aebe287296de820b106913a29f0b8944c3 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Thu, 8 Apr 2010 16:38:16 +0100 Subject: relocatable.bbclass: ignore symlinks If this links to a file created by the package install we already handle it when we process the sysroot. By ignoring symlinks here we don't cause a build to fail when the symlink is to somewhere in the host OS. Signed-off-by: Joshua Lock --- meta/classes/relocatable.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta') diff --git a/meta/classes/relocatable.bbclass b/meta/classes/relocatable.bbclass index d92847b25d..6954f2d967 100644 --- a/meta/classes/relocatable.bbclass +++ b/meta/classes/relocatable.bbclass @@ -21,7 +21,8 @@ def process_dir (directory, d): if os.path.islink(fpath): fpath = os.readlink(fpath) if not os.path.isabs(fpath): - fpath = os.path.normpath(os.path.join(directory, fpath)) + # Skip symlinks + continue if os.path.isdir(fpath): process_dir(fpath, d) -- cgit v1.2.3