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>
This commit is contained in:
Jerzy Grzegorek 2019-10-05 14:22:17 +02:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 0625899e3b
commit 6a5f6ea7e2

View File

@ -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"):