checkdeps OS version handler fix

- it didn't work if OS version didn't contain a quote
This commit is contained in:
Peter Šurda 2017-10-21 21:55:12 +02:00
parent b025624f2a
commit 8b06fdf648
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -111,7 +111,7 @@ def detectOSRelease():
detectOS.result = None
if line.startswith("VERSION_ID="):
try:
version = float(line.split("\"")[1])
version = float(line.split("=")[1].replace("\"", ""))
except ValueError:
pass
if detectOS.result == "Ubuntu" and version < 14: