repos/purge
Some checks failed
/ alpine (push) Successful in 1m56s
/ archlinux (push) Successful in 2m19s
/ opensuse (push) Successful in 3m30s
/ ubuntu (push) Successful in 6m18s
/ almalinux (push) Successful in 5m46s
/ fedora (push) Failing after 7s
/ rockylinux (push) Has been skipped
/ debian (push) Has been skipped

This commit is contained in:
Marc Beninca 2024-08-27 17:51:25 +02:00
parent eab857625b
commit 00fa4ff5e9
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -557,70 +557,6 @@ ${SPCD_PROJECT_ROOT}$(basename "${GITHUB_SERVER_URL}")"
esac esac
spcd_split spcd_split
spcd_os_printenv "SPCD_PM" spcd_os_printenv "SPCD_PM"
# specific
case "${SPCD_OS_ID}" in
"${SPCD_OS_ALMA}")
SPCD_URL_DEFAULT="https://repo.almalinux.org/almalinux"
;;
"${SPCD_OS_ALPINE}")
SPCD_URL_DEFAULT="https://dl-cdn.alpinelinux.org/alpine"
;;
"${SPCD_OS_ARCH}")
SPCD_URL_DEFAULT="https://geo.mirror.pkgbuild.com"
;;
"${SPCD_OS_DEBIAN}")
SPCD_URL_DEFAULT="http://deb.debian.org/debian"
;;
"${SPCD_OS_FEDORA}")
SPCD_URL_DEFAULT="http://download.example/pub/fedora/linux/releases"
;;
"${SPCD_OS_OPENSUSE}")
SPCD_URL_DEFAULT="http://download.opensuse.org"
;;
"${SPCD_OS_ROCKY}")
SPCD_URL_DEFAULT="http://dl.rockylinux.org/\$contentdir"
;;
"${SPCD_OS_UBUNTU}")
SPCD_URL_DEFAULT="http://archive.ubuntu.com/ubuntu"
;;
*) ;;
esac
SPCD_URL_CHOSEN="${SPCD_URL_DEFAULT}"
case "${SPCD_OS_ID}" in
"${SPCD_OS_ALMA}")
[ -n "${SPCD_URL_ALMA}" ] && SPCD_URL_CHOSEN="${SPCD_URL_ALMA}"
;;
"${SPCD_OS_ALPINE}")
[ -n "${SPCD_URL_ALPINE}" ] && SPCD_URL_CHOSEN="${SPCD_URL_ALPINE}"
;;
"${SPCD_OS_ARCH}")
[ -n "${SPCD_URL_ARCH}" ] && SPCD_URL_CHOSEN="${SPCD_URL_ARCH}"
;;
"${SPCD_OS_DEBIAN}")
[ -n "${SPCD_URL_DEBIAN}" ] && SPCD_URL_CHOSEN="${SPCD_URL_DEBIAN}" ||
SPCD_URL_CHOSEN="https://deb.debian.org/debian"
;;
"${SPCD_OS_FEDORA}")
[ -n "${SPCD_URL_FEDORA}" ] && SPCD_URL_CHOSEN="${SPCD_URL_FEDORA}" ||
SPCD_URL_CHOSEN="https://rpmfind.net/linux/fedora/linux/releases"
;;
"${SPCD_OS_OPENSUSE}")
[ -n "${SPCD_URL_OPENSUSE}" ] &&
SPCD_URL_CHOSEN="${SPCD_URL_OPENSUSE}" ||
SPCD_URL_CHOSEN="https://download.opensuse.org"
;;
"${SPCD_OS_ROCKY}")
[ -n "${SPCD_URL_ROCKY}" ] && SPCD_URL_CHOSEN="${SPCD_URL_ROCKY}" ||
SPCD_URL_CHOSEN="https://dl.rockylinux.org/\$contentdir"
;;
"${SPCD_OS_UBUNTU}")
[ -n "${SPCD_URL_UBUNTU}" ] && SPCD_URL_CHOSEN="${SPCD_URL_UBUNTU}" ||
SPCD_URL_CHOSEN="https://ubuntu.mirrors.ovh.net/ubuntu"
;;
*) ;;
esac
spcd_split
spcd_os_printenv "SPCD_URL_DEFAULT" "SPCD_URL_CHOSEN"
# set python alias # set python alias
SPCD_PYTHON_ALIAS="python3" SPCD_PYTHON_ALIAS="python3"
spcd_split spcd_split