Skip to content

Commit

Permalink
checkdeps OS version handler fix
Browse files Browse the repository at this point in the history
- it didn't work if OS version didn't contain a quote
  • Loading branch information
PeterSurda committed Oct 21, 2017
1 parent b025624 commit 8b06fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkdeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 8b06fdf

Please sign in to comment.