This commit is contained in:
Philippe Loctaux 2018-08-17 11:26:00 +00:00 committed by GitHub
commit 1ad34c938a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -48,7 +48,11 @@ def get_os_name():
if OS.startswith('linux'):
DISTRO = platform.linux_distribution()[0]
if DISTRO:
OS = OS + "-%s" % DISTRO.split()[0].lower()
OS = OS + "-%s" % DISTRO.split()[0].lower()
# add archlinux manually, for more information
# see commit afb28d87af13a8e91e6115112b361e8ae8ac7167
if os.path.exists('/etc/arch-release'):
OS = "linux-arch"
return OS