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:
Joshua Lock 2010-04-12 15:56:45 +01:00
parent 4f1ec3194d
commit d3fbb56c2f
1 changed files with 2 additions and 4 deletions

View File

@ -19,10 +19,8 @@ def process_dir (directory, d):
for file in dirs:
fpath = directory + "/" + file
if os.path.islink(fpath):
fpath = os.readlink(fpath)
if not os.path.isabs(fpath):
# Skip symlinks
continue
# Skip symlinks
continue
if os.path.isdir(fpath):
process_dir(fpath, d)