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:
parent
10b6d14062
commit
1ac0a1aebe
|
@ -21,7 +21,8 @@ def process_dir (directory, d):
|
||||||
if os.path.islink(fpath):
|
if os.path.islink(fpath):
|
||||||
fpath = os.readlink(fpath)
|
fpath = os.readlink(fpath)
|
||||||
if not os.path.isabs(fpath):
|
if not os.path.isabs(fpath):
|
||||||
fpath = os.path.normpath(os.path.join(directory, fpath))
|
# Skip symlinks
|
||||||
|
continue
|
||||||
|
|
||||||
if os.path.isdir(fpath):
|
if os.path.isdir(fpath):
|
||||||
process_dir(fpath, d)
|
process_dir(fpath, d)
|
||||||
|
|
Loading…
Reference in New Issue