-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #154 from infosiftr/apt-get-dist-clean
Switch to new `apt-get dist-clean` command
- Loading branch information
Showing
7 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
def apt_get_dist_clean: | ||
if [ | ||
# only suites with APT 2.7.8+ have "apt-get dist-clean" | ||
# https://tracker.debian.org/news/1492892/accepted-apt-278-source-into-unstable/ | ||
|
||
# https://tracker.debian.org/pkg/apt | ||
# https://packages.debian.org/apt | ||
"trixie", # TODO once 2.7.8 migrates to testing (and images are rebuilt), this should be removed! | ||
"bookworm", | ||
"bullseye", | ||
"buster", | ||
|
||
# https://launchpad.net/ubuntu/+source/apt | ||
# https://packages.ubuntu.com/apt | ||
"noble", # TODO once 2.7.8+ makes it into devel (and images are rebuilt), this should be removed! | ||
"mantic", | ||
"lunar", | ||
"jammy", | ||
"focal", | ||
|
||
empty | ||
] | index(env.codename) then | ||
"rm -rf /var/lib/apt/lists/*" | ||
else | ||
"apt-get dist-clean" | ||
end | ||
; |