1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

handle empty prjresults (e.g. when no repositories are defined)

This commit is contained in:
Dr. Peter Poeml 2007-06-26 14:32:49 +00:00
parent d5ba95193b
commit f3e5333267

View File

@ -1315,6 +1315,8 @@ def get_prj_results(apiurl, prj, show_legend=False):
root = tree.getroot()
pacs = []
if not root.find('result'):
return []
for node in root.find('result'):
pacs.append(node.get('package'))
pacs.sort()