Ignore dash portion of version string.

This commit is contained in:
Jussi Pakkanen 2015-04-04 00:33:16 +03:00
parent a4a3ba139b
commit 88d88f43a7
1 changed files with 2 additions and 0 deletions

View File

@ -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:]