Skip to content

Commit

Permalink
Merge pull request #1393 from dmach/fix-rebuild-all
Browse files Browse the repository at this point in the history
Fix '--all' option in 'rebuild' command
  • Loading branch information
dmach committed Aug 28, 2023
2 parents 7ab3a64 + baeca0b commit ee1360d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -7735,7 +7735,10 @@ def do_rebuild(self, subcmd, opts, *args):
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:
Expand Down

0 comments on commit ee1360d

Please sign in to comment.