diff options
Diffstat (limited to 'scripts/gutsy')
-rw-r--r-- | scripts/gutsy | 58 |
1 files changed, 23 insertions, 35 deletions
diff --git a/scripts/gutsy b/scripts/gutsy index 10750a8..6f23476 100644 --- a/scripts/gutsy +++ b/scripts/gutsy @@ -1,33 +1,24 @@ -case $ARCH in - amd64|i386) - case $SUITE in - gutsy|hardy|intrepid|jaunty|karmic|lucid|maverick|natty|oneiric|precise|quantal|raring|saucy|utopic|vivid|wily|yakkety|zesty) - default_mirror http://old-releases.ubuntu.com/ubuntu - ;; - *) - default_mirror http://archive.ubuntu.com/ubuntu - ;; +if ubuntu-distro-info --supported | grep "$SUITE" >/dev/null 2>&1; then + case "$ARCH" in + amd64|i386) + default_mirror http://archive.ubuntu.com/ubuntu + ;; + *) + default_mirror http://ports.ubuntu.com/ubuntu-ports + ;; esac - ;; - sparc) - case $SUITE in - gutsy) + keyring /usr/share/keyrings/ubuntu-archive-keyring.gpg +else default_mirror http://old-releases.ubuntu.com/ubuntu - ;; - *) - default_mirror http://ports.ubuntu.com/ubuntu-ports - ;; - esac - ;; - *) - default_mirror http://ports.ubuntu.com/ubuntu-ports - ;; -esac + keyring /usr/share/keyrings/ubuntu-archive-removed-keys.gpg +fi +# Note: The "removed keys" does not automatically tally with unsupported releases. +# In this case the user will need to use the --keyring= switch. + mirror_style release download_style apt finddebs_style from-indices variants - buildd fakechroot minbase -keyring /usr/share/keyrings/ubuntu-archive-keyring.gpg if doing_variant fakechroot; then test "$FAKECHROOT" = "true" || error 1 FAKECHROOTREQ "This variant requires fakechroot environment to be started" @@ -40,17 +31,14 @@ case $ARCH in *) LIBC="libc6" ;; esac -case $SUITE in - gutsy|hardy|intrepid|jaunty|karmic|lucid|maverick|natty|oneiric|precise|quantal|raring|saucy|trusty|utopic|vivid|wily|xenial|yakkety|zesty|artful|bionic|cosmic|disco|eoan|focal|groovy|hirsute) ;; - *) - # impish+ will use zstd compression, check if supported - dpkg_zstd="$(dpkg-deb --help 2>/dev/null | grep ' zstd,' || :)" - if [ -z "$EXTRACTOR_OVERRIDE" ] && [ -z "$dpkg_zstd" ]; then - info CHOSENEXTRACTOR "%s uses zstd compression, setting --extractor=ar option" "$SUITE" - export EXTRACTOR_OVERRIDE=ar - fi - ;; -esac +# impish+ will use zstd compression, check if supported +if [ $(ubuntu-distro-info -r --series "$1" | cut -d. -f1) -gt 20 ]; then + dpkg_zstd="$(dpkg-deb --help 2>/dev/null | grep ' zstd,' || :)" + if [ -z "$EXTRACTOR_OVERRIDE" ] && [ -z "$dpkg_zstd" ]; then + info CHOSENEXTRACTOR "%s uses zstd compression, setting --extractor=ar option" "$SUITE" + export EXTRACTOR_OVERRIDE=ar + fi +fi work_out_debs () { required="$(get_debs Priority: required)" |