mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 09:56:13 +01:00
- fix result query, build package list from all results
This commit is contained in:
parent
e4615a324b
commit
d6a5c4c6fb
@ -3732,11 +3732,12 @@ def get_prj_results(apiurl, prj, hide_legend=False, csv=False, status_filter=Non
|
||||
targets = []
|
||||
# {package: {(repo,arch): status}}
|
||||
status = {}
|
||||
if not root.find('result'):
|
||||
if root.find('result') == None:
|
||||
return []
|
||||
for node in root.find('result'):
|
||||
pacs.append(node.get('package'))
|
||||
pacs.sort()
|
||||
for results in root.findall('result'):
|
||||
for node in results:
|
||||
pacs.append(node.get('package'))
|
||||
pacs = sorted(list(set(pacs)))
|
||||
for node in root.findall('result'):
|
||||
# filter architecture and repository
|
||||
if arch != None and arch != node.get('arch'):
|
||||
|
Loading…
Reference in New Issue
Block a user