summaryrefslogtreecommitdiff
path: root/meta/lib
diff options
context:
space:
mode:
authorMihai Lindner <mihaix.lindner@linux.intel.com>2012-10-26 17:37:18 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-27 09:36:14 +0100
commitc2a9f0c330f0da82792f87e3860b06c25b986983 (patch)
tree21dd3202f20467c46e80c443b7bb0136ec44fcb5 /meta/lib
parent7aee4e9438755c230e1399bd5226d6c8e7fcca31 (diff)
downloadopenembedded-core-c2a9f0c330f0da82792f87e3860b06c25b986983.tar.gz
openembedded-core-c2a9f0c330f0da82792f87e3860b06c25b986983.tar.bz2
openembedded-core-c2a9f0c330f0da82792f87e3860b06c25b986983.zip
distro_identifier: replace slash with hyphen
Use "-" instead of "/" in "n/a" strings ("Distributor ID" and/or "Release"), provided by `lsb_release`. This leads to directories and subdirectories created in ./sstate-cache/ e.g. Distro-n/a/ where "Distro-n" is dir and "a" is subdir. Signed-off-by: Mihai Lindner <mihaix.lindner@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/lsb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/lsb.py b/meta/lib/oe/lsb.py
index c8852a2b65..9133356afb 100644
--- a/meta/lib/oe/lsb.py
+++ b/meta/lib/oe/lsb.py
@@ -31,4 +31,4 @@ def distro_identifier(adjust_hook=None):
distro_id, release = adjust_hook(distro_id, release)
if not distro_id:
return "Unknown"
- return '{0}-{1}'.format(distro_id, release).replace(' ','-')
+ return '{0}-{1}'.format(distro_id, release).replace(' ','-').replace('/','-')