mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-08 19:04:45 +00:00
Bug 1270082 - mozinfo: Use the kernel version if the distribution is not supported by python platform function. r=gps
This commit is contained in:
parent
8b190b9241
commit
b2b9651d11
@ -96,11 +96,11 @@ elif system == "Linux":
|
|||||||
version = "%s %s" % (distro, os_version)
|
version = "%s %s" % (distro, os_version)
|
||||||
|
|
||||||
# Bug in Python 2's `platform` library:
|
# Bug in Python 2's `platform` library:
|
||||||
# It will return a triple of empty strings on Arch.
|
# It will return a triple of empty strings if the distribution is not supported.
|
||||||
# It works on Python 3. If we don't have an OS version,
|
# It works on Python 3. If we don't have an OS version,
|
||||||
# the unit tests fail to run.
|
# the unit tests fail to run.
|
||||||
if not os_version and "ARCH" in release:
|
if not distro and not os_version and not codename:
|
||||||
distro = 'arch'
|
distro = 'lfs'
|
||||||
version = release
|
version = release
|
||||||
os_version = release
|
os_version = release
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user