Add self-dependencies for modules that have a name different from their filename
authorduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 26 Mar 2009 10:45:28 +0000 (10:45 +0000)
committerduplo <duplo@38d2e660-2303-0410-9eaa-f027e97ec537>
Thu, 26 Mar 2009 10:45:28 +0000 (10:45 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2438 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index 1c8caaa74adde5ffb9d37c3f8dda7f1ca648b005..8e175dbecbf4653b99f85ec5aa5ea3b8a06f6a89 100644 (file)
@@ -398,6 +398,9 @@ def loadModuleData(project):
             except ParseError, err:
                 raise DefineException.ModuleDefineException(path, err.line_number, err.line)
             for module, information in module_dict.items():
+                if "depends" not in information:
+                    information["depends"] = ()
+                information["depends"] += (filename.split(".")[0],)
                 information["category"] = os.path.basename(path)
                 if "configuration" in information.keys() and len(information["configuration"]):
                     configuration = module_dict[module]["configuration"]