1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 02:16:12 +01:00

- fix result query, build package list from all results

This commit is contained in:
Michael Schroeder 2010-05-27 17:05:40 +02:00
parent e4615a324b
commit d6a5c4c6fb

View File

@ -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'):