1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-05 20:58:42 +02: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

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: