summaryrefslogtreecommitdiff
path: root/meta/classes/relocatable.bbclass
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-04-12 15:56:45 +0100
committerJoshua Lock <josh@linux.intel.com>2010-04-12 15:56:45 +0100
commitd3fbb56c2ffa44e2da15ca4bfa4def35792ab6f7 (patch)
treee9c51ee3658a83403b9bbb395b363d4d9c2f0979 /meta/classes/relocatable.bbclass
parent4f1ec3194dbad9165aacac95edddc44940181499 (diff)
downloadopenembedded-core-d3fbb56c2ffa44e2da15ca4bfa4def35792ab6f7.tar.gz
openembedded-core-d3fbb56c2ffa44e2da15ca4bfa4def35792ab6f7.tar.bz2
openembedded-core-d3fbb56c2ffa44e2da15ca4bfa4def35792ab6f7.tar.xz
openembedded-core-d3fbb56c2ffa44e2da15ca4bfa4def35792ab6f7.zip
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>
Diffstat (limited to 'meta/classes/relocatable.bbclass')
-rw-r--r--meta/classes/relocatable.bbclass6
1 files changed, 2 insertions, 4 deletions
diff --git a/meta/classes/relocatable.bbclass b/meta/classes/relocatable.bbclass
index 6954f2d96..36545530c 100644
--- a/meta/classes/relocatable.bbclass
+++ b/meta/classes/relocatable.bbclass
@@ -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)