Skip to content

Commit

Permalink
Fix 'results' command for git projects
Browse files Browse the repository at this point in the history
  • Loading branch information
dmach committed Nov 5, 2024
1 parent 8b1df4d commit 2e359af
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions osc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -4291,10 +4291,13 @@ def get_prj_results(
status = {}
if root.find('result') is None:
return []
for results in root.findall('result'):
for node in results:
pacs.append(node.get('package'))

for results in root.findall("result"):
for result in results:
for status in result.findall("status"):
pacs.append(status.get("package"))
pacs = sorted(list(set(pacs)))

for node in root.findall('result'):
# filter architecture and repository
if arch and node.get('arch') not in arch:
Expand Down

0 comments on commit 2e359af

Please sign in to comment.