diff options
author | Joshua Lock <josh@linux.intel.com> | 2010-04-22 15:22:38 +0100 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2010-04-27 16:58:42 +0100 |
commit | 23ff2e08194221abf8f09af25d1be98efe46ffb7 (patch) | |
tree | 8c98276f4bc51c19a8d75f1858d09fe1c9d13bc8 /meta/classes/relocatable.bbclass | |
parent | d1f413ff30bb854d34e2bf3be2bcbe01170a9814 (diff) | |
download | poky-23ff2e08194221abf8f09af25d1be98efe46ffb7.tar.gz |
relocatable.bbclass: Normalise the generated path
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>
Diffstat (limited to 'meta/classes/relocatable.bbclass')
-rw-r--r-- | meta/classes/relocatable.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/relocatable.bbclass b/meta/classes/relocatable.bbclass index 36545530c7..a924a551ab 100644 --- a/meta/classes/relocatable.bbclass +++ b/meta/classes/relocatable.bbclass | |||
@@ -18,6 +18,7 @@ def process_dir (directory, d): | |||
18 | dirs = os.listdir(directory) | 18 | dirs = os.listdir(directory) |
19 | for file in dirs: | 19 | for file in dirs: |
20 | fpath = directory + "/" + file | 20 | fpath = directory + "/" + file |
21 | fpath = os.path.normpath(fpath) | ||
21 | if os.path.islink(fpath): | 22 | if os.path.islink(fpath): |
22 | # Skip symlinks | 23 | # Skip symlinks |
23 | continue | 24 | continue |