chore!(ubuntu): remove EOL releases
This commit is contained in:
parent
590bd560cb
commit
5e96af3eca
23
quickget
23
quickget
|
@ -156,11 +156,11 @@ function error_specify_release() {
|
||||||
case ${OS} in
|
case ${OS} in
|
||||||
*ubuntu-server*)
|
*ubuntu-server*)
|
||||||
echo -en " - Releases:\t"
|
echo -en " - Releases:\t"
|
||||||
releases_ubuntu-server | sed -Ee 's/eol-\S+//g' # hide eol releases
|
releases_ubuntu-server
|
||||||
;;
|
;;
|
||||||
*ubuntu*)
|
*ubuntu*)
|
||||||
echo -en " - Releases:\t"
|
echo -en " - Releases:\t"
|
||||||
releases_ubuntu | sed -Ee 's/eol-\S+//g' # hide eol releases
|
releases_ubuntu
|
||||||
;;
|
;;
|
||||||
*windows*)
|
*windows*)
|
||||||
echo -en " - Releases:\t"
|
echo -en " - Releases:\t"
|
||||||
|
@ -302,7 +302,7 @@ function csv_data() {
|
||||||
EDITIONS=$(editions_"${OS}")
|
EDITIONS=$(editions_"${OS}")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for RELEASE in $("releases_${FUNC}" | sed -Ee 's/eol-\S+//g' ); do # hide eol releases
|
for RELEASE in $("releases_${FUNC}"); do
|
||||||
if [[ "${OS}" == *"ubuntu"* ]] && [[ ${RELEASE} == *"daily"* ]] && [ ${HAS_ZSYNC} -eq 1 ]; then
|
if [[ "${OS}" == *"ubuntu"* ]] && [[ ${RELEASE} == *"daily"* ]] && [ ${HAS_ZSYNC} -eq 1 ]; then
|
||||||
DOWNLOADER="zsync"
|
DOWNLOADER="zsync"
|
||||||
else
|
else
|
||||||
|
@ -410,7 +410,7 @@ function test_all() {
|
||||||
fi
|
fi
|
||||||
local URL=""
|
local URL=""
|
||||||
|
|
||||||
for RELEASE in $("releases_${FUNC}" | sed -Ee 's/eol-\S+//g' ); do # hide eol releases
|
for RELEASE in $("releases_${FUNC}"); do
|
||||||
if [[ $(type -t "editions_${OS}") == function ]]; then
|
if [[ $(type -t "editions_${OS}") == function ]]; then
|
||||||
for EDITION in $(editions_"${OS}"); do
|
for EDITION in $(editions_"${OS}"); do
|
||||||
validate_release releases_"${OS}"
|
validate_release releases_"${OS}"
|
||||||
|
@ -1101,24 +1101,21 @@ function releases_tuxedo-os() {
|
||||||
function releases_ubuntu() {
|
function releases_ubuntu() {
|
||||||
local VERSION_DATA=""
|
local VERSION_DATA=""
|
||||||
local SUPPORTED_VERSIONS=()
|
local SUPPORTED_VERSIONS=()
|
||||||
local EOL_VERSIONS=()
|
|
||||||
VERSION_DATA="$(IFS=$'\n' web_pipe https://api.launchpad.net/devel/ubuntu/series | jq -r '.entries[]')"
|
VERSION_DATA="$(IFS=$'\n' web_pipe https://api.launchpad.net/devel/ubuntu/series | jq -r '.entries[]')"
|
||||||
# shellcheck disable=SC2207
|
# shellcheck disable=SC2207
|
||||||
SUPPORTED_VERSIONS=($(IFS=$'\n' jq -r 'select(.status=="Supported" or .status=="Current Stable Release") | .version' <<<"${VERSION_DATA}" | sort))
|
SUPPORTED_VERSIONS=($(IFS=$'\n' jq -r 'select(.status=="Supported" or .status=="Current Stable Release") | .version' <<<"${VERSION_DATA}" | sort))
|
||||||
# shellcheck disable=SC2207
|
|
||||||
EOL_VERSIONS=($(IFS=$'\n' jq -r 'select(.status=="Obsolete") | .version' <<<"${VERSION_DATA}" | sort))
|
|
||||||
case "${OS}" in
|
case "${OS}" in
|
||||||
ubuntu)
|
ubuntu)
|
||||||
echo "${SUPPORTED_VERSIONS[@]}" daily-live "${EOL_VERSIONS[@]/#/eol-}";;
|
echo "${SUPPORTED_VERSIONS[@]}" daily-live;;
|
||||||
kubuntu|lubuntu|ubuntukylin|ubuntu-mate|ubuntustudio|xubuntu)
|
kubuntu|lubuntu|ubuntukylin|ubuntu-mate|ubuntustudio|xubuntu)
|
||||||
# after 16.04
|
# after 16.04
|
||||||
echo "${SUPPORTED_VERSIONS[@]:1}" daily-live "${EOL_VERSIONS[@]/#/eol-}";;
|
echo "${SUPPORTED_VERSIONS[@]:1}" daily-live;;
|
||||||
ubuntu-budgie)
|
ubuntu-budgie)
|
||||||
# after 18.04
|
# after 18.04
|
||||||
echo "${SUPPORTED_VERSIONS[@]:2}" daily-live "${EOL_VERSIONS[@]/#/eol-}";;
|
echo "${SUPPORTED_VERSIONS[@]:2}" daily-live;;
|
||||||
edubuntu|ubuntu-unity|ubuntucinnamon)
|
edubuntu|ubuntu-unity|ubuntucinnamon)
|
||||||
# after 23.10
|
# after 23.10
|
||||||
echo "${SUPPORTED_VERSIONS[@]:5}" daily-live "${EOL_VERSIONS[@]/#/eol-}";;
|
echo "${SUPPORTED_VERSIONS[@]:5}" daily-live;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2580,9 +2577,7 @@ function get_ubuntu() {
|
||||||
# Ubuntu Studio daily-live images are in the dvd directory
|
# Ubuntu Studio daily-live images are in the dvd directory
|
||||||
RELEASE="dvd"
|
RELEASE="dvd"
|
||||||
fi
|
fi
|
||||||
if [[ "${RELEASE}" == "eol-"* ]]; then
|
if [[ "${RELEASE}" == "jammy-daily" ]]; then
|
||||||
URL="https://old-releases.ubuntu.com/releases/${RELEASE/eol-/}"
|
|
||||||
elif [[ "${RELEASE}" == "jammy-daily" ]]; then
|
|
||||||
if [[ "${OS}" == "ubuntustudio" ]]; then
|
if [[ "${OS}" == "ubuntustudio" ]]; then
|
||||||
URL="https://cdimage.ubuntu.com/${OS}/jammy/dvd/current"
|
URL="https://cdimage.ubuntu.com/${OS}/jammy/dvd/current"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue