From f1ff37684ae01084e115bca6ac4fad88b3980788 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Wed, 5 Apr 2017 18:44:01 +0200 Subject: Extract _validate_dependencies_exist --- configure.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/configure.py b/configure.py index e93b26ea5..05ce1a7e9 100755 --- a/configure.py +++ b/configure.py @@ -1955,6 +1955,8 @@ class ModulesChooser(object): # string to set mapping with reasons as key and modules as value self._not_using_because = collections.defaultdict(set) + ModulesChooser._validate_dependencies_exist(self._modules) + def _check_usable(self, module, modname): if not module.compatible_os(self._options.os): self._not_using_because['incompatible OS'].add(modname) @@ -1999,10 +2001,12 @@ class ModulesChooser(object): raise InternalError( "Disabled modules (%s) and modules to load have common elements" % reason) - def choose(self): - for mod in self._modules.values(): - mod.dependencies_exist(self._modules) + @staticmethod + def _validate_dependencies_exist(modules): + for module in modules.values(): + module.dependencies_exist(modules) + def choose(self): to_load = set() maybe_dep = [] -- cgit v1.2.3