mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 09:56:13 +01:00
another fix for osc results -r/-a in project directories
Fixed osc results -r/-a in project directories by fixing filtering of architecture and repository (they are arrays and not strings).
This commit is contained in:
parent
367258f050
commit
a9b05119d6
@ -3217,8 +3217,10 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
wd = os.curdir
|
||||
if is_project_dir(wd):
|
||||
opts.csv = None
|
||||
opts.arch = None
|
||||
opts.repo = None
|
||||
if opts.arch == []:
|
||||
opts.arch = None
|
||||
if opts.repo == []:
|
||||
opts.repo = None
|
||||
opts.hide_legend = None
|
||||
opts.name_filter = None
|
||||
opts.status_filter = None
|
||||
|
@ -3772,9 +3772,9 @@ def get_prj_results(apiurl, prj, hide_legend=False, csv=False, status_filter=Non
|
||||
pacs = sorted(list(set(pacs)))
|
||||
for node in root.findall('result'):
|
||||
# filter architecture and repository
|
||||
if arch != None and arch != node.get('arch'):
|
||||
if arch != None and node.get('arch') not in arch:
|
||||
continue
|
||||
if repo != None and repo != node.get('repository'):
|
||||
if repo != None and node.get('repository') not in repo:
|
||||
continue
|
||||
if node.get('dirty') == "true":
|
||||
state = "outdated"
|
||||
|
Loading…
Reference in New Issue
Block a user