mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-25 19:52:12 +01:00
don't pollute results output with repo status
This commit is contained in:
parent
b2ea0d3b23
commit
bd9a9774f3
10
osc/core.py
10
osc/core.py
@ -3440,7 +3440,7 @@ def show_prj_results_meta(apiurl, prj):
|
|||||||
|
|
||||||
def get_results(apiurl, prj, package, lastbuild=None, repository=[], arch=[]):
|
def get_results(apiurl, prj, package, lastbuild=None, repository=[], arch=[]):
|
||||||
r = []
|
r = []
|
||||||
result_line_templ = '%(rep)-15s %(arch)-10s %(status)s'
|
result_line_templ = '%(rep)-20s %(arch)-10s %(status)s'
|
||||||
|
|
||||||
f = show_results_meta(apiurl, prj, package, lastbuild, repository, arch)
|
f = show_results_meta(apiurl, prj, package, lastbuild, repository, arch)
|
||||||
root = ET.fromstring(''.join(f))
|
root = ET.fromstring(''.join(f))
|
||||||
@ -3464,14 +3464,8 @@ def get_results(apiurl, prj, package, lastbuild=None, repository=[], arch=[]):
|
|||||||
if rmap['status'] in ['expansion error', 'broken', 'blocked']:
|
if rmap['status'] in ['expansion error', 'broken', 'blocked']:
|
||||||
rmap['status'] += ': ' + statusnode.find('details').text
|
rmap['status'] += ': ' + statusnode.find('details').text
|
||||||
|
|
||||||
if rmap['status'] == 'failed':
|
|
||||||
rmap['status'] += ': %s' % apiurl + \
|
|
||||||
'/build/%(prj)s/%(rep)s/%(arch)s/%(pac)s/_log' % rmap
|
|
||||||
|
|
||||||
if rmap['dirty'] == 'true':
|
if rmap['dirty'] == 'true':
|
||||||
rmap['status'] += ' (outdated)'
|
rmap['status'] = 'outdated (was: %s)' % rmap['status']
|
||||||
else:
|
|
||||||
rmap['status'] += ' (repository is %s)' % rmap['state']
|
|
||||||
|
|
||||||
r.append(result_line_templ % rmap)
|
r.append(result_line_templ % rmap)
|
||||||
return r
|
return r
|
||||||
|
Loading…
x
Reference in New Issue
Block a user