wizard: use a reliable order for enabled modules in the project file
authorlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 12 Apr 2011 05:15:25 +0000 (05:15 +0000)
committerlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 12 Apr 2011 05:15:25 +0000 (05:15 +0000)
This should minimize the diff in the project file when
enabling/disabling a module in a BeRTOS project stored inside a VCS.

Signed-off-by: Nicolas Dandrimont <Nicolas.Dandrimont@crans.org>
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4856 38d2e660-2303-0410-9eaa-f027e97ec537

wizard/bertos_utils.py

index feb5c987fb33ad3fc736ce96689bb4c621fa6eea..7be67fe10cdfcafb24b897cc4dc0ae8d36c22935 100644 (file)
@@ -118,7 +118,7 @@ def projectFileGenerator(project_info):
     for module, information in project_info.info("MODULES").items():
         if information["enabled"]:
             enabled_modules.append(module)
-    project_data["ENABLED_MODULES"] = enabled_modules
+    project_data["ENABLED_MODULES"] = sorted(enabled_modules)
     if project_info.info("PRESET"):
         # For presets save again the BERTOS_PATH into project file
         project_data["PRESET"] = True