From 08cecf6c27b3ae41a20b78b64c2ca21f385a7804 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sun, 29 Nov 2009 13:40:23 +0000 Subject: Add a check to configure.py that warns if any module has a dependency listed that does not exist. This is mostly for my benefit. --- configure.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configure.py b/configure.py index 274620e60..58652079a 100755 --- a/configure.py +++ b/configure.py @@ -434,6 +434,17 @@ class ModuleInfo(object): deps.append(self.parent_module) return deps + """ + Ensure that all dependencies of this module actually exist, warning + about any that do not + """ + def dependencies_exist(self, modules): + all_deps = map(lambda s: s.split('|'), self.dependencies()) + + for missing in filter(lambda s: s not in modules, sum(all_deps, [])): + logging.warn("Module '%s', dep of '%s', does not exist" % ( + missing, self.basename)) + def __cmp__(self, other): if self.basename < other.basename: return -1 @@ -913,6 +924,9 @@ Determine which modules to load based on options, target, etc """ def choose_modules_to_use(modules, archinfo, options): + for mod in modules.values(): + mod.dependencies_exist(modules) + to_load = [] maybe_dep = [] not_using_because = {} -- cgit v1.2.3