aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com>2019-10-05 14:22:17 +0200
committerGravatar Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2019-10-07 23:39:21 +0200
commit6a5f6ea7e2095da4076df05a8af3d3bc8ac8bb47 (patch)
tree025f551768dd752fd5a8469c729a307f2091354e
parent0625899e3bf174094ea46f3e285ee23c29745d68 (diff)
downloadbuildroot-6a5f6ea7e2095da4076df05a8af3d3bc8ac8bb47.tar.gz
buildroot-6a5f6ea7e2095da4076df05a8af3d3bc8ac8bb47.tar.bz2
utils/checkpackagelib: CommentsMenusPackagesOrder: use '-' to describe state
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>
-rw-r--r--utils/checkpackagelib/lib_config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/checkpackagelib/lib_config.py b/utils/checkpackagelib/lib_config.py
index 06c066c5ca..d1d4a4f549 100644
--- a/utils/checkpackagelib/lib_config.py
+++ b/utils/checkpackagelib/lib_config.py
@@ -115,7 +115,7 @@ class CommentsMenusPackagesOrder(_CheckFunction):
self.initialize_level_elements(text)
elif text.startswith("endif") or text.startswith("endmenu"):
- if self.state.endswith("comment"):
+ if self.state.endswith("-comment"):
self.state = self.state[:-8]
if text.startswith("endif"):