url/opensuse

This commit is contained in:
Marc Beninca 2024-08-27 21:48:56 +02:00
parent 0d62aab505
commit 01688a562b
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -637,6 +637,10 @@ spcd_step__environment_defaults() {
# /updates/testing/$releasever/Everything/…
SPCD_URL_FEDORA="https://rpmfind.net/linux/fedora/linux"
[ -n "${SPCD_URL_OPENSUSE}" ] ||
# /debug/…
# /distribution/…
# /source/…
# /update/…
SPCD_URL_OPENSUSE="https://download.opensuse.org"
[ -n "${SPCD_URL_PYTHON}" ] ||
SPCD_URL_PYTHON="https://pypi.org/simple"
@ -836,17 +840,26 @@ deb ${SPCD_URL_DEBIAN}-security ${SPCD_OS_VERSION}-security main
"|^enabled=1|# enabled=0|"
;;
"${SPCD_OS_OPENSUSE}")
for spcd_spr__file in \
set -- \
"backports-debug-update" \
"backports-update" \
"debug-non-oss" \
"debug-update-non-oss" \
"debug-update" \
"debug" \
"non-oss" \
"oss" \
"sle-debug-update" \
"sle-update" \
"source" \
"update-non-oss" \
"update" \
"openh264"; do
"update"
for spcd_spr__file in "${@}"; do
spcd_os_sed "/etc/zypp/repos.d/repo-${spcd_spr__file}.repo" \
"|http://download.opensuse.org|${SPCD_URL_OPENSUSE}|"
done
spcd_os_sed "/etc/zypp/repos.d/repo-openh264.repo" \
"|^enabled=1|# enabled=0|"
;;
"${SPCD_OS_ROCKY}")
case "${SPCD_OS_VERSION}" in