Allow version labels with trailing dots

Fixes #1586
pull/2276/merge
Michal Koutný 7 years ago committed by Jussi Pakkanen
parent 04b2c67b7d
commit e94a9c8fcf
  1. 2
      mesonbuild/mesonlib.py

@ -255,7 +255,7 @@ def detect_vcs(source_dir):
def grab_leading_numbers(vstr, strict=False):
result = []
for x in vstr.split('.'):
for x in vstr.rstrip('.').split('.'):
try:
result.append(int(x))
except ValueError as e:

Loading…
Cancel
Save