1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-14 16:26:13 +01:00

Merge pull request #1561 from dmach/rebuild-all

Fix 'rebuild' command so the '--all' option conflicts with the 'package' argument
This commit is contained in:
Daniel Mach 2024-05-10 13:10:09 +02:00 committed by GitHub
commit 72e1896232
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -7847,10 +7847,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.all:
# ignore the package name which can come from a working copy
packages = [None]
elif opts.multibuild_package:
if opts.all and package:
self.argparser.error("Option '--all' conflicts with the 'package' argument. Omit the argument or run osc from outside a package working copy.")
if opts.multibuild_package:
resolver = MultibuildFlavorResolver(apiurl, project, package, use_local=False)
packages = resolver.resolve_as_packages(opts.multibuild_package)
else: