mirror of
https://github.com/mesonbuild/meson.git
synced 2026-11-06 05:16:42 +00:00
dependency: If cached version is outdated, look on system again
Fixes: #9271
This commit is contained in:
1 parent
945f185146
commit
30f24bfa32
1 file changed
+4
@@ -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:',
|
||||
|
||||
Reference in new issue
Block a user