From 8b06fdf648842165c1b29fdc49eaa62411aa63c3 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Sat, 21 Oct 2017 21:55:12 +0200 Subject: [PATCH] checkdeps OS version handler fix - it didn't work if OS version didn't contain a quote --- checkdeps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/checkdeps.py b/checkdeps.py index 65f8a787..05f00944 100644 --- a/checkdeps.py +++ b/checkdeps.py @@ -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: