1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-14 17:46:17 +01:00

Fix package filtering for osc rq

Check if action.tgt_package is None.
This commit is contained in:
lethliel 2019-07-23 15:51:41 +02:00
parent 23c8f19868
commit 0c0dca0b27

View File

@ -2426,7 +2426,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
for action in result.actions: for action in result.actions:
if action.type == 'group' or not opts.target_package_filter: if action.type == 'group' or not opts.target_package_filter:
continue 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 filtered = True
break break
if not filtered: if not filtered: