diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-04-08 16:38:16 +0100 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2010-04-08 16:41:24 +0100 |
commit | 1ac0a1aebe287296de820b106913a29f0b8944c3 (patch) | |
tree | 31cc97de518a1afa587d6c42a41faf64a0067dda /meta | |
parent | 10b6d140622e56f70dd5f84b66b8580be6f78c68 (diff) | |
download | poky-1ac0a1aebe287296de820b106913a29f0b8944c3.tar.gz |
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.bbclass | 3 |
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): | |||
21 | if os.path.islink(fpath): | 21 | if os.path.islink(fpath): |
22 | fpath = os.readlink(fpath) | 22 | fpath = os.readlink(fpath) |
23 | if not os.path.isabs(fpath): | 23 | if not os.path.isabs(fpath): |
24 | fpath = os.path.normpath(os.path.join(directory, fpath)) | 24 | # Skip symlinks |
25 | continue | ||
25 | 26 | ||
26 | if os.path.isdir(fpath): | 27 | if os.path.isdir(fpath): |
27 | process_dir(fpath, d) | 28 | process_dir(fpath, d) |