@@ -94,7 +94,7 @@ def commit_config(config_dir):
def _write_layer_list(dest, repodirs):
layers = []
for r in repodirs:
- for root, dirs, files in os.walk(os.path.join(dest,r)):
+ for root, _dirs, files in os.walk(os.path.join(dest,r)):
if os.path.basename(root) == 'conf' and 'layer.conf' in files:
layers.append(os.path.relpath(os.path.dirname(root), dest))
layers_f = os.path.join(dest, ".oe-layers.json")
@@ -388,7 +388,7 @@ The bitbake configuration files (local.conf, bblayers.conf and more) can be foun
logger.plain("The bitbake configuration files (local.conf, bblayers.conf and more) can be found in\n {}/conf\n".format(bitbake_builddir))
def get_registry_config(registry_path, id):
- for root, dirs, files in os.walk(registry_path):
+ for root, _dirs, files in os.walk(registry_path):
for f in files:
if f.endswith('.conf.json') and id == get_config_name(f):
return os.path.join(root, f)
@@ -766,7 +766,7 @@ def has_expired(expiry_date):
def list_registry(registry_path, with_expired):
json_data = {}
- for root, dirs, files in os.walk(registry_path):
+ for root, _dirs, files in os.walk(registry_path):
for f in files:
if f.endswith('.conf.json'):
config_name = get_config_name(f)
The ruff lint tool reported loop control variables that were not being used: B007 Loop control variable `dirs` not used within loop body Adding underscore as a prefix helps indicate that it is not being used inside the loop. Signed-off-by: Rob Woolley <rob.woolley@windriver.com> --- bin/bitbake-setup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)