]> code.ossystems Code Review - openembedded-core.git/commitdiff
relocatable.bbclass: Normalise the generated path
authorJoshua Lock <josh@linux.intel.com>
Thu, 22 Apr 2010 14:22:38 +0000 (15:22 +0100)
committerJoshua Lock <josh@linux.intel.com>
Tue, 27 Apr 2010 15:58:42 +0000 (16:58 +0100)
The generated path we create for the binaries RPATH can have a lot of directory
separators in. Use os.path.normpath() to tidy it up and only include the
required directory separators.

This patch is purely to appease my personal sense of niceness...

Signed-off-by: Joshua Lock <josh@linux.intel.com>
meta/classes/relocatable.bbclass

index 36545530c717ae8f30e5b35ebbc371402af69f46..a924a551abd34d501eef34c222a3206fde3900c1 100644 (file)
@@ -18,6 +18,7 @@ def process_dir (directory, d):
     dirs = os.listdir(directory)
     for file in dirs:
         fpath = directory + "/" + file
+        fpath = os.path.normpath(fpath)
         if os.path.islink(fpath):
             # Skip symlinks
             continue