dependency: If cached version is outdated, look on system again

Fixes: #9271
pull/9232/head
Xavier Claessens 3 years ago committed by Xavier Claessens
parent 945f185146
commit 30f24bfa32
  1. 4
      mesonbuild/interpreter/dependencyfallbacks.py

@ -219,6 +219,10 @@ class DependencyFallbacksHolder(MesonInterpreterObject):
if cached_dep:
found_vers = cached_dep.get_version()
if not self._check_version(wanted_vers, found_vers):
if not override:
# We cached this dependency on disk from a previous run,
# but it could got updated on the system in the meantime.
return None
mlog.log('Dependency', mlog.bold(name),
'found:', mlog.red('NO'),
'found', mlog.normal_cyan(found_vers), 'but need:',

Loading…
Cancel
Save