utils/checkpackagelib: CommentsMenusPackagesOrder: properly initialize levels
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Fri, 2 Aug 2019 08:29:34 +0000 (10:29 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Fri, 2 Aug 2019 16:43:52 +0000 (18:43 +0200)
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.

Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/264383157
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
utils/checkpackagelib/lib_config.py

index 26349fb681377a868065c90b9d53f05dfd5f1eba..225f92af131e4100a2316a613a096da4808aa2f8 100644 (file)
@@ -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 = ""