mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-12 08:56:13 +01:00
Change 'results' command so the normal and multibuild packages have the same output
This commit is contained in:
parent
46895095fa
commit
e1b866d5a7
11
osc/core.py
11
osc/core.py
@ -4103,11 +4103,7 @@ def get_results(apiurl: str, project: str, package: str, verbose=False, printJoi
|
|||||||
# api (unless we keep get_results around as well)...
|
# api (unless we keep get_results around as well)...
|
||||||
format = kwargs.pop('format')
|
format = kwargs.pop('format')
|
||||||
if format is None:
|
if format is None:
|
||||||
result_line_templ = '%(rep)-20s %(arch)-10s %(status)s'
|
format = '%(rep)-20s %(arch)-10s %(pkg)-30s %(status)s'
|
||||||
result_line_mb_templ = '%(rep)-20s %(arch)-10s %(pkg)-30s %(status)s'
|
|
||||||
else:
|
|
||||||
result_line_templ = format
|
|
||||||
result_line_mb_templ = format
|
|
||||||
r = []
|
r = []
|
||||||
printed = False
|
printed = False
|
||||||
multibuild_packages = kwargs.pop('multibuild_packages', [])
|
multibuild_packages = kwargs.pop('multibuild_packages', [])
|
||||||
@ -4150,10 +4146,7 @@ def get_results(apiurl: str, project: str, package: str, verbose=False, printJoi
|
|||||||
# of the repository if the result is already prefiltered by the backend. So we need
|
# of the repository if the result is already prefiltered by the backend. So we need
|
||||||
# to filter out the repository states.
|
# to filter out the repository states.
|
||||||
if code_filter is None or code_filter == res['code']:
|
if code_filter is None or code_filter == res['code']:
|
||||||
if is_multi:
|
r.append(format % res)
|
||||||
r.append(result_line_mb_templ % res)
|
|
||||||
else:
|
|
||||||
r.append(result_line_templ % res)
|
|
||||||
|
|
||||||
if printJoin:
|
if printJoin:
|
||||||
if printed:
|
if printed:
|
||||||
|
Loading…
Reference in New Issue
Block a user