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 <josh@linux.intel.com>
This commit is contained in:
Joshua Lock 2010-04-08 16:38:16 +01:00
parent 10b6d14062
commit 1ac0a1aebe
1 changed files with 2 additions and 1 deletions

View File

@ -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)