From e69486bdc8505a0e6f2e3e9f6eee66d206815e32 Mon Sep 17 00:00:00 2001 From: Tom Patzig Date: Fri, 16 May 2008 11:15:41 +0000 Subject: [PATCH] -in status-filter mode only show repos with the matching status (in name-filter/or mixed mode all repos are shown) --- osc/core.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osc/core.py b/osc/core.py index 460b6fdb..d22fdfb7 100755 --- a/osc/core.py +++ b/osc/core.py @@ -2486,6 +2486,7 @@ def get_prj_results(apiurl, prj, hide_legend=False, csv=False, status_filter=Non if status_filter or name_filter: pacs_to_show = [] + targets_to_show = [] #filtering for Package Status if status_filter: @@ -2498,6 +2499,7 @@ def get_prj_results(apiurl, prj, hide_legend=False, csv=False, status_filter=Non if status[pkg][repo] == filt_txt: if not name_filter: pacs_to_show.append(pkg) + targets_to_show.append(repo) elif name_filter in pkg: pacs_to_show.append(pkg) @@ -2508,6 +2510,8 @@ def get_prj_results(apiurl, prj, hide_legend=False, csv=False, status_filter=Non pacs_to_show.append(pkg) pacs = [ i for i in pacs if i in pacs_to_show ] + if len(targets_to_show) is not 0: + targets = [ i for i in targets if i in targets_to_show ] # csv output if csv: