]> code.ossystems Code Review - openembedded-core.git/commitdiff
relocatable.bbclass: Actually skip symlinks
authorJoshua Lock <josh@linux.intel.com>
Mon, 12 Apr 2010 14:56:45 +0000 (15:56 +0100)
committerJoshua Lock <josh@linux.intel.com>
Mon, 12 Apr 2010 14:56:45 +0000 (15:56 +0100)
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>
meta/classes/relocatable.bbclass

index 6954f2d967575009cecf0baf199256b9a6a55da1..36545530c717ae8f30e5b35ebbc371402af69f46 100644 (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)