add scientific linux 6 and centos 6

This commit is contained in:
Edison Su 2011-08-01 15:54:16 -07:00
parent b7f1149acc
commit a2493b5852

View File

@ -92,7 +92,7 @@ class Distribution:
self.distro = "CentOS"
elif os.path.exists("/etc/redhat-release"):
version = file("/etc/redhat-release").readline()
if version.find("Red Hat Enterprise Linux Server release 6") != -1:
if version.find("Red Hat Enterprise Linux Server release 6") != -1 or version.find("Scientific Linux release 6") != -1 or version.find("CentOS release 6"):
self.distro = "RHEL6"
elif version.find("CentOS release") != -1:
self.distro = "CentOS"