Skip to content
Snippets Groups Projects
Verified Commit 742f6e86 authored by Mattia Rizzolo's avatar Mattia Rizzolo
Browse files

do not try to execute the command if the command is not available

parent 24601d57
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,8 @@ def tool_missing(cmd):
def tool_older_than(cmdline, min_ver, vcls=StrictVersion):
if find_executable(cmdline[0]) is None:
return True
actual_ver = subprocess.check_output(cmdline).decode("utf-8").strip()
return vcls(actual_ver) < vcls(min_ver)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment