summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-04-08 16:38:16 +0100
committerJoshua Lock <josh@linux.intel.com>2010-04-08 16:41:24 +0100
commit1ac0a1aebe287296de820b106913a29f0b8944c3 (patch)
tree31cc97de518a1afa587d6c42a41faf64a0067dda /meta
parent10b6d140622e56f70dd5f84b66b8580be6f78c68 (diff)
downloadopenembedded-core-1ac0a1aebe287296de820b106913a29f0b8944c3.tar.gz
openembedded-core-1ac0a1aebe287296de820b106913a29f0b8944c3.tar.bz2
openembedded-core-1ac0a1aebe287296de820b106913a29f0b8944c3.zip
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/relocatable.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/relocatable.bbclass b/meta/classes/relocatable.bbclass
index d92847b25d..6954f2d967 100644
--- a/meta/classes/relocatable.bbclass
+++ b/meta/classes/relocatable.bbclass
@@ -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)