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:
parent
a5edbb201a
commit
7bbfd64854
10
osc/core.py
10
osc/core.py
@ -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'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user