mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-27 02:16:12 +01:00
filter excluded repos for package by default
This commit is contained in:
parent
b0b4cb9ed8
commit
055f577c6b
@ -4995,6 +4995,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
help='generate output in CSV format')
|
help='generate output in CSV format')
|
||||||
@cmdln.option('', '--format', default='%(repository)s|%(arch)s|%(state)s|%(dirty)s|%(code)s|%(details)s',
|
@cmdln.option('', '--format', default='%(repository)s|%(arch)s|%(state)s|%(dirty)s|%(code)s|%(details)s',
|
||||||
help='format string for csv output')
|
help='format string for csv output')
|
||||||
|
@cmdln.option('--show-excluded', action='store_true',
|
||||||
|
help='show repos that are excluded for this package')
|
||||||
def do_results(self, subcmd, opts, *args):
|
def do_results(self, subcmd, opts, *args):
|
||||||
"""${cmd_name}: Shows the build results of a package or project
|
"""${cmd_name}: Shows the build results of a package or project
|
||||||
|
|
||||||
@ -5044,7 +5046,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
|
|
||||||
kwargs = {'apiurl': apiurl, 'project': project, 'package': package,
|
kwargs = {'apiurl': apiurl, 'project': project, 'package': package,
|
||||||
'lastbuild': opts.last_build, 'repository': opts.repo,
|
'lastbuild': opts.last_build, 'repository': opts.repo,
|
||||||
'arch': opts.arch, 'wait': opts.watch}
|
'arch': opts.arch, 'wait': opts.watch, 'showexcl': opts.show_excluded}
|
||||||
if opts.multibuild_package:
|
if opts.multibuild_package:
|
||||||
opts.no_multibuild = False
|
opts.no_multibuild = False
|
||||||
kwargs['multibuild_packages'] = opts.multibuild_package
|
kwargs['multibuild_packages'] = opts.multibuild_package
|
||||||
|
@ -5543,9 +5543,12 @@ def get_results(apiurl, project, package, verbose=False, printJoin='', *args, **
|
|||||||
r = []
|
r = []
|
||||||
printed = False
|
printed = False
|
||||||
multibuild_packages = kwargs.pop('multibuild_packages', [])
|
multibuild_packages = kwargs.pop('multibuild_packages', [])
|
||||||
|
show_excluded = kwargs.pop('showexcl', False)
|
||||||
for results in get_package_results(apiurl, project, package, **kwargs):
|
for results in get_package_results(apiurl, project, package, **kwargs):
|
||||||
r = []
|
r = []
|
||||||
for res, is_multi in result_xml_to_dicts(results):
|
for res, is_multi in result_xml_to_dicts(results):
|
||||||
|
if not show_excluded and res['code'] == 'excluded':
|
||||||
|
continue
|
||||||
if '_oldstate' in res:
|
if '_oldstate' in res:
|
||||||
oldstate = res['_oldstate']
|
oldstate = res['_oldstate']
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user