From 2731db8ef1b67aae5e501e95d55f1085b5b3d4eb Mon Sep 17 00:00:00 2001 From: Aidan McMahon-Smith Date: Thu, 18 Apr 2024 09:59:45 +0200 Subject: [PATCH] Add all-erratum-content to publish exclusions While investigating another issue I stumbled across this logic. I imagine it'd be the same case for the new all-erratum-content repos --- pubtools/_pulp/tasks/push/items/erratum.py | 3 ++- tests/push/test_pulperratumpushitem.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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", ],