From baeca0b48b66df6a37308bc09a3fba16fec1c5a0 Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Mon, 28 Aug 2023 10:28:06 +0200 Subject: [PATCH] Fix '--all' option in 'rebuild' command When 'osc rebuild --all' was executed from a package working copy, the package name was automatically read and used instead of passing None to the underlying rebuild() function. --- osc/commandline.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 5fd8ff58..eb5fc9a7 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -7735,7 +7735,10 @@ Please submit there instead, or use --nodevelproject to force direct submission. if not (opts.all or package or repo or arch or code): raise oscerr.WrongOptions('No option has been provided. If you want to rebuild all packages of the entire project, use --all option.') - if opts.multibuild_package: + if opts.all: + # ignore the package name which can come from a working copy + packages = [None] + elif opts.multibuild_package: resolver = MultibuildFlavorResolver(apiurl, project, package, use_local=False) packages = resolver.resolve_as_packages(opts.multibuild_package) else: