diff options
Diffstat (limited to 'poky/meta/lib/oe/lsb.py')
-rw-r--r-- | poky/meta/lib/oe/lsb.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/poky/meta/lib/oe/lsb.py b/poky/meta/lib/oe/lsb.py index 4f2b419edc..43e46380d7 100644 --- a/poky/meta/lib/oe/lsb.py +++ b/poky/meta/lib/oe/lsb.py @@ -110,12 +110,12 @@ def distro_identifier(adjust_hook=None): if adjust_hook: distro_id, release = adjust_hook(distro_id, release) if not distro_id: - return "Unknown" - # Filter out any non-alphanumerics - distro_id = re.sub(r'\W', '', distro_id) + return "unknown" + # Filter out any non-alphanumerics and convert to lowercase + distro_id = re.sub(r'\W', '', distro_id).lower() if release: - id_str = '{0}-{1}'.format(distro_id.lower(), release) + id_str = '{0}-{1}'.format(distro_id, release) else: id_str = distro_id return id_str.replace(' ','-').replace('/','-') |