From 6a5f6ea7e2095da4076df05a8af3d3bc8ac8bb47 Mon Sep 17 00:00:00 2001 From: Jerzy Grzegorek Date: Sat, 5 Oct 2019 14:22:17 +0200 Subject: [PATCH] utils/checkpackagelib: CommentsMenusPackagesOrder: use '-' to describe state Signed-off-by: Jerzy Grzegorek Cc: Ricardo Martincoski Reviewed-by: Ricardo Martincoski Signed-off-by: Arnout Vandecappelle (Essensium/Mind) --- utils/checkpackagelib/lib_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"): -- 2.30.2