mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-17 06:11:35 +01:00
Fix support version 13.37.0 #28
This commit is contained in:
parent
94e02bddfd
commit
b6dc506e14
1 changed files with 4 additions and 1 deletions
|
@ -32,4 +32,7 @@ def slack_ver():
|
||||||
with open("/etc/slackware-version", "r") as f:
|
with open("/etc/slackware-version", "r") as f:
|
||||||
sv = f.read()
|
sv = f.read()
|
||||||
f.close()
|
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))
|
||||||
|
|
Loading…
Reference in a new issue