1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 02:16:12 +01:00

Allow multiple --repo and --arch options in "osc prjresults"

This harmonizes "osc prjresults --help" with osc's actual behavior.
Also, core.get_prj_results expects lists (or None) instead of strings
for the corresponding repo/arch parameters.
This commit is contained in:
Marcus Huewe 2017-09-28 15:23:02 +02:00
parent dbdc712018
commit 2d327df4e7

View File

@ -5096,10 +5096,6 @@ Please submit there instead, or use --nodevelproject to force direct submission.
raise oscerr.WrongOptions("No project given") raise oscerr.WrongOptions("No project given")
if package == None: if package == None:
if opts.arch == []:
opts.arch = None
if opts.repo == []:
opts.repo = None
opts.hide_legend = None opts.hide_legend = None
opts.name_filter = None opts.name_filter = None
opts.status_filter = None opts.status_filter = None
@ -5150,9 +5146,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
help='show only packages with buildstatus STATUS (see legend)') help='show only packages with buildstatus STATUS (see legend)')
@cmdln.option('-n', '--name-filter', metavar='EXPR', @cmdln.option('-n', '--name-filter', metavar='EXPR',
help='show only packages whose names match EXPR') help='show only packages whose names match EXPR')
@cmdln.option('-a', '--arch', metavar='ARCH', @cmdln.option('-a', '--arch', metavar='ARCH', action='append',
help='show results only for specified architecture(s)') help='show results only for specified architecture(s)')
@cmdln.option('-r', '--repo', metavar='REPO', @cmdln.option('-r', '--repo', metavar='REPO', action='append',
help='show results only for specified repo(s)') help='show results only for specified repo(s)')
@cmdln.option('-V', '--vertical', action='store_true', @cmdln.option('-V', '--vertical', action='store_true',
help='list packages vertically instead horizontally') help='list packages vertically instead horizontally')