Skip to content

Commit

Permalink
feat(aptly-push)!: change purge policy
Browse files Browse the repository at this point in the history
Keep 100 package versions by default, remove old package revisions
  • Loading branch information
fyhertz committed Feb 6, 2022
1 parent bf0f580 commit 708d243
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/wakemebot/aptly.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ def purge_old_packages(packages: List[Package], retain_how_many: int) -> Set[Pac
packages_to_delete: Set[Package] = set()
purge_functions: List[Callable[[List[Package]], List[Package]]] = [
purge_old_revisions,
purge_old_patches,
partial(purge_old_versions, retain_how_many=retain_how_many),
]
for purge_function in purge_functions:
Expand Down
1 change: 0 additions & 1 deletion tests/test_aptly.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ def test_purge__should_delete_old_package_versions_and_revisions(_, mock_client)
"Pamd64 kustomize 0.12.0-1~ops2deb _",
"Parmhf kustomize 0.12.0-1~ops2deb _",
"Pamd64 kubectl 1.0.1-2~ops2deb _",
"Pamd64 kubectl 1.0.1-3~ops2deb _",
"Pamd64 kubectl 1.0.2-1~ops2deb _",
]
},
Expand Down

0 comments on commit 708d243

Please sign in to comment.