aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mesonlib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonlib.py b/mesonlib.py
index 180e21e..af29421 100644
--- a/mesonlib.py
+++ b/mesonlib.py
@@ -64,6 +64,8 @@ def detect_vcs(source_dir):
return None
def version_compare(vstr1, vstr2):
+ if '-' in vstr1:
+ vstr1 = vstr1.split('-')[0]
if vstr2.startswith('>='):
cmpop = operator.ge
vstr2 = vstr2[2:]