Skip to content

Commit

Permalink
show build results of multibuild packages by default
Browse files Browse the repository at this point in the history
Be in sync with webui. Also it is assumed that a user wants to see
all build results of the source change he did and not only for a subset.
  • Loading branch information
adrianschroeter committed Jan 17, 2017
1 parent 943a53d commit 885dd3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
0.157
- add unpublish command (requires OBS 2.8)
- results: show multibuild results by default

0.156
- highlight scheduled jobs with dispatch problems (due to constraints)
Expand Down
9 changes: 5 additions & 4 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -4977,8 +4977,8 @@ def do_rremove(self, subcmd, opts, project, package, *files):
help='Show results only for specified architecture(s)')
@cmdln.option('-v', '--verbose', action='store_true', default=False,
help='more verbose output')
@cmdln.option('-m', '--multibuild', action='store_true', default=False,
help='Show results for all packages in multibuild')
@cmdln.option('--no-multibuild', action='store_true', default=False,
help='Disable results for all direct affect packages inside of the project')
@cmdln.option('-M', '--multibuild-package', action='append', default=[],
help='Only show results for the specified multibuild package')
@cmdln.option('-w', '--watch', action='store_true', default=False,
Expand Down Expand Up @@ -5040,9 +5040,10 @@ def do_results(self, subcmd, opts, *args):
'lastbuild': opts.last_build, 'repository': opts.repo,
'arch': opts.arch, 'wait': opts.watch}
if opts.multibuild_package:
opts.multibuild = True
opts.no_multibuild = False
kwargs['multibuild_packages'] = opts.multibuild_package
kwargs['multibuild'] = kwargs['locallink'] = opts.multibuild
if not opts.no_multibuild:
kwargs['multibuild'] = kwargs['locallink'] = True
if opts.xml or opts.csv:
for xml in get_package_results(**kwargs):
if opts.xml:
Expand Down

0 comments on commit 885dd3f

Please sign in to comment.