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>
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 .