From 0c0dca0b2717ed031c630afa754fd68cee2bbab9 Mon Sep 17 00:00:00 2001 From: lethliel Date: Tue, 23 Jul 2019 15:51:41 +0200 Subject: [PATCH] Fix package filtering for osc rq Check if action.tgt_package is None. --- osc/commandline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 94c2c7d2..6fd6b731 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -2426,7 +2426,7 @@ Please submit there instead, or use --nodevelproject to force direct submission. for action in result.actions: if action.type == 'group' or not opts.target_package_filter: continue - if not filter_pattern.match(action.tgt_package): + if action.tgt_package is not None and not filter_pattern.match(action.tgt_package): filtered = True break if not filtered: