aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter.py
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>2018-03-20 16:36:29 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2018-03-25 18:27:13 +0300
commit6f7f7c69a2a30f4ea04a73b45763dc2c4f62a453 (patch)
treec0828850692551fc2c150c03b9408c0a189ed221 /mesonbuild/interpreter.py
parente9a7b0d2a964017be48f383c38351d80bc40a723 (diff)
downloadmeson-6f7f7c69a2a30f4ea04a73b45763dc2c4f62a453.zip
meson-6f7f7c69a2a30f4ea04a73b45763dc2c4f62a453.tar.gz
meson-6f7f7c69a2a30f4ea04a73b45763dc2c4f62a453.tar.bz2
dependency's wanted version might be a list
A dependency declared in a subproject should be able to behave as a pkgconfig dependency, thus it should process the wanted version as a list.
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r--mesonbuild/interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index 16798a4..c87a49b 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -2349,7 +2349,7 @@ to directly access options of other subprojects.''')
def check_subproject_version(wanted, found):
if wanted == 'undefined':
return True
- if found == 'undefined' or not mesonlib.version_compare(found, wanted):
+ if found == 'undefined' or not mesonlib.version_compare_many(found, wanted)[0]:
return False
return True