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.

Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/264383157

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2019.08.x
Arnout Vandecappelle (Essensium/Mind) 2019-08-02 10:29:34 +02:00
parent 1a49dcb528
commit d5990601ba
1 changed files with 3 additions and 3 deletions

View 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 = ""