-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to new apt-get dist-clean
command
#154
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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! | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://launchpad.net/ubuntu/noble/+source/apt 👀 (APT 2.7.9 is in proposed now, so hopefully will be in the next There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not docker-library/official-images#16059, but will hold out hope for the next one (it's still in |
||
"mantic", | ||
"lunar", | ||
"jammy", | ||
"focal", | ||
|
||
empty | ||
] | index(env.codename) then | ||
"rm -rf /var/lib/apt/lists/*" | ||
else | ||
"apt-get dist-clean" | ||
end | ||
; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://tracker.debian.org/news/1495149/apt-279-migrated-to-testing/ 👀
(The next rebuild of Debian can come with a removal of this line 💪)