mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-28 15:36:13 +01:00
build result may have no status
This commit is contained in:
parent
9e9acd9afa
commit
ad238df8bd
@ -3540,9 +3540,12 @@ def get_package_results(apiurl, prj, package, lastbuild=None, repository=[], arc
|
|||||||
rmap['state'] = node.get('state')
|
rmap['state'] = node.get('state')
|
||||||
rmap['dirty'] = node.get('dirty')
|
rmap['dirty'] = node.get('dirty')
|
||||||
|
|
||||||
statusnode = node.find('status')
|
|
||||||
rmap['code'] = statusnode.get('code', '')
|
|
||||||
rmap['details'] = ''
|
rmap['details'] = ''
|
||||||
|
statusnode = node.find('status')
|
||||||
|
if statusnode != None:
|
||||||
|
rmap['code'] = statusnode.get('code', '')
|
||||||
|
else:
|
||||||
|
rmap['code'] = ''
|
||||||
|
|
||||||
if rmap['code'] in ('unresolvable', 'expansion error', 'broken', 'blocked', 'finished'):
|
if rmap['code'] in ('unresolvable', 'expansion error', 'broken', 'blocked', 'finished'):
|
||||||
details = statusnode.find('details')
|
details = statusnode.find('details')
|
||||||
|
Loading…
Reference in New Issue
Block a user