dev-lang/python-oem: hardcode distname to coreos

This is needed because the Azure agent uses the distro's name instead of
the ID for determining how it should behave. Once their code is updated,
they will correctly read the ID, making this patch no longer necessary.
This commit is contained in:
Alex Crawford 2017-01-06 10:39:22 -08:00
parent 4024a1b32b
commit 1d128368fd
2 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ diff -r 12bf7fc1ba76 Lib/platform.py
+ os_release_info = _parse_os_release() + os_release_info = _parse_os_release()
+ if os_release_info is not None: + if os_release_info is not None:
+ if 'NAME' in os_release_info: + if 'NAME' in os_release_info:
+ distname = os_release_info['NAME'] + distname = "CoreOS"
+ if 'VERSION_ID' in os_release_info: + if 'VERSION_ID' in os_release_info:
+ version = os_release_info['VERSION_ID'] + version = os_release_info['VERSION_ID']
+ if 'ID' in os_release_info: + if 'ID' in os_release_info: