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", ], diff --git a/tests/push/test_push.py b/tests/push/test_push.py index de919929..dc6f35d7 100644 --- a/tests/push/test_push.py +++ b/tests/push/test_push.py @@ -131,7 +131,7 @@ def test_typical_push( ) # It should have invoked hook(s). - assert len(hookspy) == 29 + assert len(hookspy) == 25 (hook_name, hook_kwargs) = hookspy[0] assert hook_name == "task_start" (hook_name, hook_kwargs) = hookspy[1]