1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-14 01:26:23 +01:00
Do not apply the --target-package-filter pattern if there is no target
package.
This commit is contained in:
Marcus Huewe 2019-08-02 13:31:53 +02:00
commit 6e95f8019d

View File

@ -2429,7 +2429,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: