utils/checkpackagelib: CommentsMenusPackagesOrder: initialize 'menu_of_packages'...
authorJerzy Grzegorek <jerzy.m.grzegorek@gmail.com>
Sat, 5 Oct 2019 12:22:19 +0000 (14:22 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Mon, 7 Oct 2019 21:39:21 +0000 (23:39 +0200)
'source' without a previous 'menu' is common in package/Config.in in
br2-externals.

Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com>
Cc: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
utils/checkpackagelib/lib_config.py

index c5d0dc0fdb50235ce4465ce7793fe8632b540631..3a8482890279b2ab9565723c5d39bb038379215f 100644 (file)
@@ -63,7 +63,7 @@ class AttributesOrder(_CheckFunction):
 class CommentsMenusPackagesOrder(_CheckFunction):
     def before(self):
         self.level = 0
-        self.menu_of_packages = [""]
+        self.menu_of_packages = ["The top level menu"]
         self.new_package = ""
         self.package = [""]
         self.print_package_warning = [True]