Skip to content

Commit

Permalink
Add all-erratum-content to publish exclusions
Browse files Browse the repository at this point in the history
While investigating another issue I stumbled across this logic. I
imagine it'd be the same case for the new all-erratum-content repos
  • Loading branch information
amcmahon-rh committed Apr 18, 2024
1 parent 394203f commit 2731db8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pubtools/_pulp/tasks/push/items/erratum.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions tests/push/test_pulperratumpushitem.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
Expand Down

0 comments on commit 2731db8

Please sign in to comment.