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

- show build result details always when existing (eg. showing build host when in building state)

This commit is contained in:
Adrian Schröter 2011-12-05 23:23:49 +01:00
parent a5edbb201a
commit 7bbfd64854

View File

@ -4626,16 +4626,16 @@ def get_package_results(apiurl, prj, package, lastbuild=None, repository=[], arc
rmap['dirty'] = node.get('dirty')
rmap['details'] = ''
statusnode = node.find('status')
details = None
statusnode = node.find('status')
if statusnode != None:
rmap['code'] = statusnode.get('code', '')
details = statusnode.find('details')
else:
rmap['code'] = ''
if rmap['code'] in ('unresolvable', 'expansion error', 'broken', 'blocked', 'finished'):
details = statusnode.find('details')
if details != None:
rmap['details'] = details.text
if details != None:
rmap['details'] = details.text
rmap['dirty'] = rmap['dirty'] == 'true'