diff mbox series

[2/7] bitbake-setup: use correct registry in status/update

Message ID 20260116095741.3654153-2-alex.kanavin@gmail.com
State New
Headers show
Series [1/7] bitbake-setup: pass only the registry settting into obtain_config(), not the whole settings | expand

Commit Message

Alexander Kanavin Jan. 16, 2026, 9:57 a.m. UTC
From: Alexander Kanavin <alex@linutronix.de>

status/update operations should be using the registry
that was used in initializing a setup, but they've
been using the registry from settings. This is now
corrected.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 bin/bitbake-setup | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/bin/bitbake-setup b/bin/bitbake-setup
index 4496cb61c..b61436272 100755
--- a/bin/bitbake-setup
+++ b/bin/bitbake-setup
@@ -708,7 +708,8 @@  def build_status(top_dir, settings, args, d, update=False):
     args.non_interactive = True
     args.skip_selection = current_upstream_config['skip-selection']
     source_overrides = current_upstream_config["source-overrides"]
-    new_upstream_config = obtain_config(top_dir, settings["default"]["registry"], args, source_overrides, d)
+    registry = current_upstream_config.get("registry")
+    new_upstream_config = obtain_config(top_dir, registry, args, source_overrides, d)
 
     write_upstream_config(confdir, new_upstream_config)
     config_diff = bb.process.run('git -C {} diff'.format(confdir))[0]