mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
utils/checkpackagelib: CommentsMenusPackagesOrder: rename variable 'm'
Rename variable 'm' for better readability. 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>
This commit is contained in:
parent
6cf04ab783
commit
dd99dc5763
@ -77,7 +77,8 @@ class CommentsMenusPackagesOrder(_CheckFunction):
|
|||||||
"package/Config.in.host"]:
|
"package/Config.in.host"]:
|
||||||
return
|
return
|
||||||
|
|
||||||
m = re.match(r'^\s*source ".*/([^/]*)/Config.in(.host)?"', text)
|
source_line = re.match(r'^\s*source ".*/([^/]*)/Config.in(.host)?"', text)
|
||||||
|
|
||||||
if text.startswith("comment ") or text.startswith("if ") or \
|
if text.startswith("comment ") or text.startswith("if ") or \
|
||||||
text.startswith("menu "):
|
text.startswith("menu "):
|
||||||
|
|
||||||
@ -113,9 +114,9 @@ class CommentsMenusPackagesOrder(_CheckFunction):
|
|||||||
elif text.startswith("endmenu"):
|
elif text.startswith("endmenu"):
|
||||||
self.state = self.state[:-5]
|
self.state = self.state[:-5]
|
||||||
|
|
||||||
elif m:
|
elif source_line:
|
||||||
level = self.get_level()
|
level = self.get_level()
|
||||||
new_package = m.group(1)
|
new_package = source_line.group(1)
|
||||||
|
|
||||||
# We order _ before A, so replace it with .
|
# We order _ before A, so replace it with .
|
||||||
new_package_ord = new_package.replace('_', '.')
|
new_package_ord = new_package.replace('_', '.')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user