mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 14:01:57 -09:00
support/scripts/pkg-stats: fix flake8 E741 ambiguous variable name
Signed-off-by: Matthew Weber <matthew.weber@collins.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit c2ebfe7d78)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
11f488c9f1
commit
ec2b44efbf
@@ -375,9 +375,9 @@ def package_init_make_info():
|
|||||||
variable_list = [x[5:] for x in variable_list if x.startswith("HOST_")] + \
|
variable_list = [x[5:] for x in variable_list if x.startswith("HOST_")] + \
|
||||||
[x for x in variable_list if not x.startswith("HOST_")]
|
[x for x in variable_list if not x.startswith("HOST_")]
|
||||||
|
|
||||||
for l in variable_list:
|
for item in variable_list:
|
||||||
# Get variable name and value
|
# Get variable name and value
|
||||||
pkgvar, value = l.split("=")
|
pkgvar, value = item.split("=")
|
||||||
|
|
||||||
# Strip the suffix according to the variable
|
# Strip the suffix according to the variable
|
||||||
if pkgvar.endswith("_LICENSE"):
|
if pkgvar.endswith("_LICENSE"):
|
||||||
|
|||||||
Reference in New Issue
Block a user