Fix support version 13.37.0 #28

This commit is contained in:
Dimitris Zlatanidis 2015-07-15 23:28:18 +03:00
parent 94e02bddfd
commit b6dc506e14

View file

@ -32,4 +32,7 @@ def slack_ver():
with open("/etc/slackware-version", "r") as f:
sv = f.read()
f.close()
return (".".join(re.findall(r"\d+", sv)))
ver = re.findall(r"\d+", sv)
if len(ver) == 3 and ver[2] == "0":
return (".".join(ver)[:-2])
return (".".join(ver))