1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-13 17:16:23 +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:
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: