buildpack-deps/shared.jq

22 lines
470 B
Plaintext

def apt_get_dist_clean:
if env.codename | IN(
# 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
"bookworm",
"bullseye",
# https://launchpad.net/ubuntu/+source/apt
# https://packages.ubuntu.com/apt
"jammy",
empty
) then
"rm -rf /var/lib/apt/lists/*"
else
"apt-get dist-clean"
end
;