mirror of
https://git.yoctoproject.org/poky
synced 2026-05-04 13:39:49 +02:00
relocatable.bbclass: Actually skip symlinks
The previous patch to do so was badly merged and didn't actually skip all symlinks, only ones which where not an absolute path... Signed-off-by: Joshua Lock <josh@linux.intel.com>
This commit is contained in:
@@ -19,10 +19,8 @@ def process_dir (directory, d):
|
|||||||
for file in dirs:
|
for file in dirs:
|
||||||
fpath = directory + "/" + file
|
fpath = directory + "/" + file
|
||||||
if os.path.islink(fpath):
|
if os.path.islink(fpath):
|
||||||
fpath = os.readlink(fpath)
|
# Skip symlinks
|
||||||
if not os.path.isabs(fpath):
|
continue
|
||||||
# Skip symlinks
|
|
||||||
continue
|
|
||||||
|
|
||||||
if os.path.isdir(fpath):
|
if os.path.isdir(fpath):
|
||||||
process_dir(fpath, d)
|
process_dir(fpath, d)
|
||||||
|
|||||||
Reference in New Issue
Block a user