X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=wizard%2FBModulePage.py;h=f3ad6d96b8bfddbd7ecf40e0e485964c375a5c1c;hb=287e07072af695487071abb94c040be0bfe3f576;hp=a6307d7a0abbefeb5cc61e36c4f52a486d0a5336;hpb=505f1c5092e0efa3b63009a7544923751d43f0b3;p=bertos.git diff --git a/wizard/BModulePage.py b/wizard/BModulePage.py index a6307d7a..f3ad6d96 100644 --- a/wizard/BModulePage.py +++ b/wizard/BModulePage.py @@ -468,12 +468,16 @@ class BModulePage(BWizardPage): unsatisfied = set() modules = self.projectInfo("MODULES") files = self.projectInfo("FILES") - configurations = self.projectInfo("CONFIGURATIONS")[modules[module]["configuration"]] + configurations = self.projectInfo("CONFIGURATIONS").get(modules[module]["configuration"], {"paramlist": ()}) conditional_deps = () for i, param_name in configurations["paramlist"]: information = configurations[param_name] - if information["informations"]["type"] == "boolean" and information["value"] != "0" and "conditional_deps" in information["informations"]: + if information["informations"]["type"] == "boolean" and \ + information["value"] != "0" and \ + "conditional_deps" in information["informations"]: + conditional_deps += information["informations"]["conditional_deps"] + for dependency in modules[module]["depends"] + conditional_deps: if dependency in modules and not modules[dependency]["enabled"]: unsatisfied |= set([dependency])