summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/lsb.py
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:44:59 +0100
commitb4e48cc66c8e16aee6301258b5104d06c16c00dd (patch)
tree5420378b02f43e17c746b564b463be0cdc5e6804 /meta/lib/oe/lsb.py
parent32cec3214f7b85457ace98debbbdb687dfac1462 (diff)
downloadpoky-b4e48cc66c8e16aee6301258b5104d06c16c00dd.tar.gz
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. (From OE-Core rev: c2a9f0c330f0da82792f87e3860b06c25b986983) Signed-off-by: Mihai Lindner <mihaix.lindner@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/lsb.py')
-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):
31 distro_id, release = adjust_hook(distro_id, release) 31 distro_id, release = adjust_hook(distro_id, release)
32 if not distro_id: 32 if not distro_id:
33 return "Unknown" 33 return "Unknown"
34 return '{0}-{1}'.format(distro_id, release).replace(' ','-') 34 return '{0}-{1}'.format(distro_id, release).replace(' ','-').replace('/','-')