mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-14 00:06:15 +01:00
Fix multibuild packages in osc results
This commit is contained in:
parent
6ccdb9cfe3
commit
55ad41d33b
@ -5454,8 +5454,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
help='more verbose output')
|
help='more verbose output')
|
||||||
@cmdln.option('--no-multibuild', action='store_true', default=False,
|
@cmdln.option('--no-multibuild', action='store_true', default=False,
|
||||||
help='Disable results for all direct affect packages inside of the project')
|
help='Disable results for all direct affect packages inside of the project')
|
||||||
@cmdln.option('-M', '--multibuild-package', action='append', default=[],
|
@cmdln.option('-M', '--multibuild-package', metavar='FLAVOR', action='append', default=[],
|
||||||
help='Only show results for the specified multibuild package')
|
help=HELP_MULTIBUILD_MANY)
|
||||||
@cmdln.option('-V', '--vertical', action='store_true',
|
@cmdln.option('-V', '--vertical', action='store_true',
|
||||||
help='list packages vertically instead horizontally for entire project')
|
help='list packages vertically instead horizontally for entire project')
|
||||||
@cmdln.option('-w', '--watch', action='store_true',
|
@cmdln.option('-w', '--watch', action='store_true',
|
||||||
@ -5477,7 +5477,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
|
|
||||||
Usage:
|
Usage:
|
||||||
osc results # (inside working copy of PRJ or PKG)
|
osc results # (inside working copy of PRJ or PKG)
|
||||||
osc results PROJECT [PACKAGE]
|
osc results PROJECT [PACKAGE[:FLAVOR]]
|
||||||
|
|
||||||
${cmd_option_list}
|
${cmd_option_list}
|
||||||
"""
|
"""
|
||||||
@ -5525,7 +5525,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
'code': opts.status_filter}
|
'code': opts.status_filter}
|
||||||
if opts.multibuild_package:
|
if opts.multibuild_package:
|
||||||
opts.no_multibuild = False
|
opts.no_multibuild = False
|
||||||
kwargs['multibuild_packages'] = opts.multibuild_package
|
resolver = MultibuildFlavorResolver(apiurl, project, package, use_local=False)
|
||||||
|
kwargs['multibuild_packages'] = resolver.resolve(opts.multibuild_package)
|
||||||
if not opts.no_multibuild:
|
if not opts.no_multibuild:
|
||||||
kwargs['multibuild'] = kwargs['locallink'] = True
|
kwargs['multibuild'] = kwargs['locallink'] = True
|
||||||
if opts.xml or opts.csv:
|
if opts.xml or opts.csv:
|
||||||
|
@ -5968,7 +5968,8 @@ def get_results(apiurl, project, package, verbose=False, printJoin='', *args, **
|
|||||||
continue
|
continue
|
||||||
if multibuild_packages:
|
if multibuild_packages:
|
||||||
l = res['pkg'].rsplit(':', 1)
|
l = res['pkg'].rsplit(':', 1)
|
||||||
if len(l) != 2 or l[1] not in multibuild_packages:
|
if (len(l) != 2 or l[1] not in multibuild_packages) and not (len(l) == 1 and "" in multibuild_packages):
|
||||||
|
# special case: packages without flavor when multibuild_packages contains an empty string
|
||||||
continue
|
continue
|
||||||
res['status'] = res['code']
|
res['status'] = res['code']
|
||||||
if verbose and res['details'] is not None:
|
if verbose and res['details'] is not None:
|
||||||
|
Loading…
Reference in New Issue
Block a user