Fix system type when machine data is not available

This commit is contained in:
Ivan Kravets
2015-05-22 16:44:53 +03:00
parent 66ac453c0f
commit 274b04c08f

View File

@ -90,7 +90,10 @@ class memoized(object):
def get_systype(): def get_systype():
data = uname() data = uname()
return ("%s_%s" % (data[0], data[4])).lower() systype = data[0]
if data[4]:
systype += "_" + data[4]
return systype.lower()
def pioversion_to_intstr(): def pioversion_to_intstr():