forked from Mirror/pmbootstrap
pmb.parse.kconfig: Rename options to arch_options in check_config_options_set (MR 2490)
Otherwise mypy gets confused by the type later in the code, and I also think it might be confusing behaviour in general that <options> gets overwritten in this loop.
This commit is contained in:
parent
b2d32a85e9
commit
df2593400d
1 changed files with 2 additions and 2 deletions
|
@ -135,7 +135,7 @@ def check_config_options_set(
|
||||||
if skip:
|
if skip:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for archs, options in archs_options.items():
|
for archs, arch_options in archs_options.items():
|
||||||
if archs != "all":
|
if archs != "all":
|
||||||
# Split and check if the device's architecture architecture has
|
# Split and check if the device's architecture architecture has
|
||||||
# special config options. If option does not contain the
|
# special config options. If option does not contain the
|
||||||
|
@ -144,7 +144,7 @@ def check_config_options_set(
|
||||||
if config_arch not in architectures:
|
if config_arch not in architectures:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for option, option_value in options.items():
|
for option, option_value in arch_options.items():
|
||||||
if not check_option(component, details, config, config_path, option, option_value):
|
if not check_option(component, details, config, config_path, option, option_value):
|
||||||
ret = False
|
ret = False
|
||||||
# Stop after one non-detailed error
|
# Stop after one non-detailed error
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue