diff --git a/pubtools/_pulp/tasks/push/items/erratum.py b/pubtools/_pulp/tasks/push/items/erratum.py index d5022747..d5b25390 100644 --- a/pubtools/_pulp/tasks/push/items/erratum.py +++ b/pubtools/_pulp/tasks/push/items/erratum.py @@ -86,7 +86,8 @@ def publish_pulp_repos(self): # # Also note that there's an entire family of these repos, hence the # startswith rather than plain equality check. - if not repo_id.startswith("all-rpm-content"): + if not (repo_id.startswith("all-rpm-content") + or repo_id.startswith("all-erratum-content")): out.add(repo_id) return sorted(out) diff --git a/tests/push/test_pulperratumpushitem.py b/tests/push/test_pulperratumpushitem.py index 340f6a91..f211e95e 100644 --- a/tests/push/test_pulperratumpushitem.py +++ b/tests/push/test_pulperratumpushitem.py @@ -23,6 +23,7 @@ def test_erratum_publishes_all_repos(): repository_memberships=[ "all-rpm-content", "all-rpm-content-ff", + "all-erratum-content-2019", "existing1", "existing2", ],