Skip to contentSkip to conversation

utils/checkpackagelib: CommentsMenusPackagesOrder: properly initialize levels

PATCH New Arnout Vandecappelle (Essensium/Mind) 1 participant 2 messages Aug 2, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 utils/checkpackagelib: CommentsMenusPackagesOrder: properly initialize levels

Fix an issue introduced by Arnout while committing. Jerzy originally initialized the menu_of_packages, package and print_package_warning members like they should be, but Arnout thought it wasn't needed and removed that.

It is actually needed, to make sure the top level (level 0) works.

---
 utils/checkpackagelib/lib_config.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
utils/checkpackagelib/lib_config.py +3 -3
index 26349fb681..225f92af13 100644
@@ -61,9 +61,9 @@ class AttributesOrder(_CheckFunction):
 
 
 class CommentsMenusPackagesOrder(_CheckFunction):
-    menu_of_packages = []
-    package = []
-    print_package_warning = []
+    menu_of_packages = [""]
+    package = [""]
+    print_package_warning = [True]
 
     def before(self):
         self.state = ""
Signature · 1 line
2.21.0
#1 lore raw

PATCH 2/2 package/Config.in: remove double /

Detected by check-package, which gets confused by it.

---
 package/Config.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/Config.in +1 -1
index b7472b9bea..35e71e3185 100644
@@ -1069,7 +1069,7 @@ menu "External python modules"
 	source "package/python-slob/Config.in"
 	source "package/python-smbus-cffi/Config.in"
 	source "package/python-socketio/Config.in"
-	source "package/python-sortedcontainers//Config.in"
+	source "package/python-sortedcontainers/Config.in"
 	source "package/python-spidev/Config.in"
 	source "package/python-sqlalchemy/Config.in"
 	source "package/python-subprocess32/Config.in"
Signature · 1 line
2.21.0