diff options
author | Michal Koutný <mkoutny@suse.com> | 2017-08-28 17:59:34 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-09-04 19:26:57 +0300 |
commit | e94a9c8fcfa4776e09c9cabfe01de705ce34b735 (patch) | |
tree | 69ca2e34db07e3fbe8965534563870b379df2b3e /mesonbuild/mesonlib.py | |
parent | 04b2c67b7d779e070731d440281640844892be66 (diff) | |
download | meson-e94a9c8fcfa4776e09c9cabfe01de705ce34b735.zip meson-e94a9c8fcfa4776e09c9cabfe01de705ce34b735.tar.gz meson-e94a9c8fcfa4776e09c9cabfe01de705ce34b735.tar.bz2 |
Allow version labels with trailing dots
Fixes #1586
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r-- | mesonbuild/mesonlib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index 9a019c6..305f600 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: |