1
0
Fork 0
mirror of https://github.com/fastogt/pyfastogt synced 2025-03-09 23:38:55 +00:00

update system_info.py add LINUXMINT to distro list

This commit is contained in:
Chojnowski 2018-03-24 13:56:02 -04:00 committed by GitHub
parent b839ec087a
commit 982267515d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,7 +80,7 @@ def linux_get_dist():
""" """
Return the running distribution group Return the running distribution group
RHEL: RHEL, CENTOS, FEDORA RHEL: RHEL, CENTOS, FEDORA
DEBIAN: UBUNTU, DEBIAN DEBIAN: UBUNTU, DEBIAN, LINUXMINT
""" """
linux_tuple = platform.linux_distribution() linux_tuple = platform.linux_distribution()
dist_name = linux_tuple[0] dist_name = linux_tuple[0]
@ -88,7 +88,7 @@ def linux_get_dist():
if dist_name_upper in ["RHEL", "CENTOS LINUX", "FEDORA"]: if dist_name_upper in ["RHEL", "CENTOS LINUX", "FEDORA"]:
return "RHEL" return "RHEL"
elif dist_name_upper in ["DEBIAN", "UBUNTU"]: elif dist_name_upper in ["DEBIAN", "UBUNTU", "LINUXMINT"]:
return "DEBIAN" return "DEBIAN"
raise NotImplemented("Unknown platform '%s'" % dist_name) raise NotImplemented("Unknown platform '%s'" % dist_name)