From 18c39854ef6bc70d2bd456bf4dd778873617e92a Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Mon, 27 Oct 2025 15:16:27 +0100 Subject: [PATCH] bitbake: bitbake-setup: correctly define --global argument for settings management --global was defined twice (for settings command as a whole, and specifically for set/unset sub-commands), which caused 'settings --global set ...' to be allowed, and at the same time not have any effect. 'settings set --global' is the only valid form after this change. (Bitbake rev: 2f14cf68f6c653b6da90180a99a22c58855b0cef) Signed-off-by: Alexander Kanavin Tested-by: Antonin Godard Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- bitbake/bin/bitbake-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/bin/bitbake-setup b/bitbake/bin/bitbake-setup index 38bb8099fd..a0426005ff 100755 --- a/bitbake/bin/bitbake-setup +++ b/bitbake/bin/bitbake-setup @@ -785,7 +785,7 @@ def main(): parser_settings_arg_global = argparse.ArgumentParser(add_help=False) parser_settings_arg_global.add_argument('--global', action='store_true', help="Modify the setting in a global settings file, rather than one specific to a top directory") - parser_settings = subparsers.add_parser('settings', parents=[parser_settings_arg_global], + parser_settings = subparsers.add_parser('settings', help='List current settings, or set or unset a setting in a settings file (e.g. the default prefix and name of the top directory, the location of build configuration registry, downloads directory and other settings specific to a top directory)') parser_settings.set_defaults(func=settings_func)