aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com>2019-09-03 23:13:26 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-09-25 22:24:42 +0200
commit4e88b372744a8ccd29b6a4a44add6870aa0ed6b5 (patch)
tree58015d8f227c6cfe31145f8208f6ea3b6188bd60
parent6748e42acebe4dfa2221ef508883321f85253ca0 (diff)
downloadbuildroot-4e88b372744a8ccd29b6a4a44add6870aa0ed6b5.tar.gz
buildroot-4e88b372744a8ccd29b6a4a44add6870aa0ed6b5.tar.bz2
utils/checkpackagelib: CommentsMenusPackagesOrder: get value of variable 'level'
Get value of variable 'level' only just after the state change. Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Reviewed-by: Ricardo Martincoski <ricardo.martincoski@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--utils/checkpackagelib/lib_config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/checkpackagelib/lib_config.py b/utils/checkpackagelib/lib_config.py
index 8f7b13a866..d12653f080 100644
--- a/utils/checkpackagelib/lib_config.py
+++ b/utils/checkpackagelib/lib_config.py
@@ -115,8 +115,9 @@ class CommentsMenusPackagesOrder(_CheckFunction):
elif text.startswith("endmenu"):
self.state = self.state[:-5]
- elif source_line:
self.level = self.get_level()
+
+ elif source_line:
new_package = source_line.group(1)
# We order _ before A, so replace it with .