From e94a9c8fcfa4776e09c9cabfe01de705ce34b735 Mon Sep 17 00:00:00 2001 From: Michal Koutný Date: Mon, 28 Aug 2017 17:59:34 +0200 Subject: Allow version labels with trailing dots Fixes #1586 --- mesonbuild/mesonlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index 9a019c6be..305f60078 100644 --- a/mesonbuild/mesonlib.py +++ b/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: -- cgit v1.2.3