From 01688a562bd56df58b468e747068d9b752bee898 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 27 Aug 2024 21:48:56 +0200 Subject: [PATCH] url/opensuse --- spcd/bootstrap.sh | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/spcd/bootstrap.sh b/spcd/bootstrap.sh index e9f6c6b..084ad0c 100644 --- a/spcd/bootstrap.sh +++ b/spcd/bootstrap.sh @@ -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