From 73b47e00250de335513172f0ed0284cd4ac31599 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Fri, 14 Sep 2018 17:52:13 +0100 Subject: Fix incorrect feature check warning Fix the special handling of '>=0.nn' constraints in project(meson_version:) for feature checks when the constraint version contains spaces --- mesonbuild/mesonlib.py | 1 + 1 file changed, 1 insertion(+) (limited to 'mesonbuild/mesonlib.py') diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index 8a2dc0c..bbab2ef 100644 --- a/mesonbuild/mesonlib.py +++ b/mesonbuild/mesonlib.py @@ -520,6 +520,7 @@ def version_compare_condition_with_min(condition, minimum): # # Map versions in the constraint of the form '0.46' to '0.46.0', to embed # this knowledge of the meson versioning scheme. + condition = condition.strip() if re.match('^\d+.\d+$', condition): condition += '.0' -- cgit v1.1