summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/lib/oe/lsb.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/lib/oe/lsb.py b/meta/lib/oe/lsb.py
index 4f2b419edc..43e46380d7 100644
--- a/meta/lib/oe/lsb.py
+++ b/meta/lib/oe/lsb.py
@@ -110,12 +110,12 @@ def distro_identifier(adjust_hook=None):
110 if adjust_hook: 110 if adjust_hook:
111 distro_id, release = adjust_hook(distro_id, release) 111 distro_id, release = adjust_hook(distro_id, release)
112 if not distro_id: 112 if not distro_id:
113 return "Unknown" 113 return "unknown"
114 # Filter out any non-alphanumerics 114 # Filter out any non-alphanumerics and convert to lowercase
115 distro_id = re.sub(r'\W', '', distro_id) 115 distro_id = re.sub(r'\W', '', distro_id).lower()
116 116
117 if release: 117 if release:
118 id_str = '{0}-{1}'.format(distro_id.lower(), release) 118 id_str = '{0}-{1}'.format(distro_id, release)
119 else: 119 else:
120 id_str = distro_id 120 id_str = distro_id
121 return id_str.replace(' ','-').replace('/','-') 121 return id_str.replace(' ','-').replace('/','-')