From 7f4f082d69bdb05ae148f81fde2d7c66897e8eb7 Mon Sep 17 00:00:00 2001 From: Niklas Claesson Date: Fri, 22 Dec 2017 01:28:27 +0100 Subject: Print 'cached' if dependency is found in cache --- mesonbuild/interpreter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py index 71552a2..f079079 100644 --- a/mesonbuild/interpreter.py +++ b/mesonbuild/interpreter.py @@ -2131,6 +2131,8 @@ to directly access options of other subprojects.''') # Check if we've already searched for and found this dep if identifier in self.coredata.deps: cached_dep = self.coredata.deps[identifier] + mlog.log('Cached dependency', mlog.bold(name), + 'found:', mlog.green('YES')) else: # Check if exactly the same dep with different version requirements # was found already. @@ -2183,6 +2185,9 @@ to directly access options of other subprojects.''') m = 'Version {} of {} already loaded, requested incompatible version {}' raise DependencyException(m.format(found, dirname, wanted)) elif valid_version: + mlog.log('Found a', mlog.green('(cached)'), 'subproject', + mlog.bold(os.path.join(self.subproject_dir, dirname)), 'for', + mlog.bold(name)) subproject = self.subprojects[dirname] try: # Never add fallback deps to self.coredata.deps -- cgit v1.1