From fe52feb47db2ce56c9c417d4282f13665fdec687 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Tue, 21 Jun 2016 08:38:03 +0530 Subject: dependency: Fix version check for a not-found dependency The check was wrong, and we were passing 'none' as the 'found' version to the version compare if the cached dep was a not-found dependency --- mesonbuild/interpreter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mesonbuild/interpreter.py') diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 7acff53..e114ab2 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -1644,7 +1644,7 @@ class Interpreter(): if 'version' in kwargs: wanted = kwargs['version'] found = cached_dep.get_version() - if not found or not mesonlib.version_compare(found, wanted): + if not cached_dep.found() or not mesonlib.version_compare(found, wanted): # Cached dep has the wrong version. Check if an external # dependency or a fallback dependency provides it. cached_dep = None -- cgit v1.1