aboutsummaryrefslogtreecommitdiff
path: root/utils/checkpackagelib/lib_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/checkpackagelib/lib_config.py')
-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"):