mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-22 14:38:53 +02:00
build result may have no status
This commit is contained in:
@@ -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')
|
||||||
|
Reference in New Issue
Block a user