From: Joshua Lock Date: Thu, 8 Apr 2010 15:38:16 +0000 (+0100) Subject: relocatable.bbclass: ignore symlinks X-Git-Tag: 2011-1~6032 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=1ac0a1aebe287296de820b106913a29f0b8944c3;p=openembedded-core.git 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 --- 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)