Skip to content
Snippets Groups Projects
Commit 4c3109cb authored by Zbigniew Jędrzejewski-Szmek's avatar Zbigniew Jędrzejewski-Szmek Committed by Chris Lamb
Browse files

utils: unbork comparisons of file versions

String comparisons don't really work for version strings.
parent 953a599c
No related branches found
No related tags found
1 merge request!87Stop using deprecated distutils
......@@ -38,11 +38,11 @@ def file_version():
def file_version_is_lt(version):
return file_version() < version
return Version(file_version()) < Version(version)
def file_version_is_ge(version):
return file_version() >= version
return Version(file_version()) >= Version(version)
def tools_missing(*required):
......
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