1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-27 02:16:12 +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:
Danny Kukawka 2010-06-21 17:10:25 +02:00
parent 367258f050
commit a9b05119d6
2 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -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"