]> code.ossystems Code Review - openembedded-core.git/commitdiff
relocatable.bbclass: ignore symlinks
authorJoshua Lock <josh@linux.intel.com>
Thu, 8 Apr 2010 15:38:16 +0000 (16:38 +0100)
committerJoshua Lock <josh@linux.intel.com>
Thu, 8 Apr 2010 15:41:24 +0000 (16:41 +0100)
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>
meta/classes/relocatable.bbclass

index d92847b25dd3382301090ee82fec7dd16005f346..6954f2d967575009cecf0baf199256b9a6a55da1 100644 (file)
@@ -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)