1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-12 00:46:14 +01:00

Change 'results' command so the normal and multibuild packages have the same output

This commit is contained in:
Daniel Mach 2024-06-17 21:35:23 +02:00
parent 46895095fa
commit e1b866d5a7

View File

@ -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)...
format = kwargs.pop('format')
if format is None:
result_line_templ = '%(rep)-20s %(arch)-10s %(status)s'
result_line_mb_templ = '%(rep)-20s %(arch)-10s %(pkg)-30s %(status)s'
else:
result_line_templ = format
result_line_mb_templ = format
format = '%(rep)-20s %(arch)-10s %(pkg)-30s %(status)s'
r = []
printed = False
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
# to filter out the repository states.
if code_filter is None or code_filter == res['code']:
if is_multi:
r.append(result_line_mb_templ % res)
else:
r.append(result_line_templ % res)
r.append(format % res)
if printJoin:
if printed: