Add the parameter conditional_deps to the configuration information dict.
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 23 Oct 2009 13:54:57 +0000 (13:54 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 23 Oct 2009 13:54:57 +0000 (13:54 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3097 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index 7f470a1cc8556d6745c8295dbb5a63cb85e0a1d9..c0c9ecb2a3d367047aee9a19b7eddbca8bea2c41 100644 (file)
@@ -709,6 +709,14 @@ def loadConfigurationInfos(path):
                 configuration_infos[name]["value"].find("U") != -1):
             configuration_infos[name]["informations"]["unsigned"] = True
             configuration_infos[name]["value"] = configuration_infos[name]["value"].replace("U", "")
+        if "conditional_deps" in configuration_infos[name]["informations"]:
+            if (type(configuration_infos[name]["informations"]["conditional_deps"]) == str or
+                    type(configuration_infos[name]["informations"]["conditional_deps"]) == unicode):
+                configuration_infos[name]["informations"]["conditional_deps"] = (configuration_infos[name]["informations"]["conditional_deps"], )
+            elif type(configurations_infos[name]["informations"]["conditional_deps"]) == tuple:
+                pass
+            else:
+                configurations_infos[name]["informations"]["conditional_deps"] = ()
         configuration_infos[name]["description"] = description
         configuration_infos[name]["brief"] = brief
     return configuration_infos