From e72e844998a9b7e63e56d6c1ccc3ada8f5dad4d6 Mon Sep 17 00:00:00 2001 From: duplo Date: Fri, 23 Oct 2009 13:54:57 +0000 Subject: [PATCH] Add the parameter conditional_deps to the configuration information dict. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3097 38d2e660-2303-0410-9eaa-f027e97ec537 --- wizard/bertos_utils.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wizard/bertos_utils.py b/wizard/bertos_utils.py index 7f470a1c..c0c9ecb2 100644 --- a/wizard/bertos_utils.py +++ b/wizard/bertos_utils.py @@ -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 -- 2.25.1