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.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/checkpackagelib/lib_config.py b/utils/checkpackagelib/lib_config.py
index f0edb9993d..7d7567ac67 100644
--- a/utils/checkpackagelib/lib_config.py
+++ b/utils/checkpackagelib/lib_config.py
@@ -72,6 +72,11 @@ class CommentsMenusPackagesOrder(_CheckFunction):
return len(self.state.split('-')) - 1
def check_line(self, lineno, text):
+ # We only want to force sorting for the top-level menus
+ if self.filename not in ["package/Config.in",
+ "package/Config.in.host"]:
+ return
+
if text.startswith("comment") or text.startswith("if") or \
text.startswith("menu"):