examples: update at91sam7 configuration.
[bertos.git] / wizard / BModulePage.py
index a6307d7a0abbefeb5cc61e36c4f52a486d0a5336..f3ad6d96b8bfddbd7ecf40e0e485964c375a5c1c 100644 (file)
@@ -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])