[Buildroot] [git commit] utils/checkpackagelib: CommentsMenusPackagesOrder: remove '-comment' state before the '-menu' one
Arnout Vandecappelle (Essensium/Mind)
arnout at mind.be
Mon Oct 7 21:39:21 UTC 2019
commit: https://git.buildroot.net/buildroot/commit/?id=dd251d68e5995b7c146c9712ce25a187a25b87de
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
A comment is considered an alternative delimiter like a menu. I.e.,
a menu that comes after a comment should not be considered a submenu of
that comment. Therefore, remove the '-comment' state before adding the
'-menu' one.
Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek at gmail.com>
Cc: Ricardo Martincoski <ricardo.martincoski at gmail.com>
Reviewed-by: Ricardo Martincoski <ricardo.martincoski at gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
---
utils/checkpackagelib/lib_config.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/utils/checkpackagelib/lib_config.py b/utils/checkpackagelib/lib_config.py
index fc0df3dd17..499660feb7 100644
--- a/utils/checkpackagelib/lib_config.py
+++ b/utils/checkpackagelib/lib_config.py
@@ -107,6 +107,9 @@ class CommentsMenusPackagesOrder(_CheckFunction):
self.state += "-if"
elif text.startswith("menu"):
+ if self.state.endswith("-comment"):
+ self.state = self.state[:-8]
+
self.state += "-menu"
self.initialize_level_elements(text)
More information about the buildroot
mailing list