From 55b8707097cf8087b181b655a6872245fe768d2b Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 17 Jun 2020 16:00:23 +0800 Subject: [PATCH] install-deps.sh: do not enable unavailable repos should be specific when enabling codeready-builder repos, there is chance that some repos are just not available, while the required one is. for instance, "codeready-builder-for-rhel-8-x86_64-eus-debug-rpms" might not be available. and in that case, `install-deps.sh` just fails. so in this change, only the required one is enabled. see also https://fedoraproject.org/wiki/EPEL Signed-off-by: Kefu Chai --- install-deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-deps.sh b/install-deps.sh index e0b169c9640..d12a8d38feb 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -370,7 +370,7 @@ else $SUDO dnf config-manager --add-repo http://apt-mirror.front.sepia.ceph.com/lab-extras/8/ $SUDO dnf config-manager --setopt=apt-mirror.front.sepia.ceph.com_lab-extras_8_.gpgcheck=0 --save elif test $ID = rhel -a $MAJOR_VERSION = 8 ; then - $SUDO subscription-manager repos --enable "codeready-builder-for-rhel-8-*-rpms" + $SUDO subscription-manager repos --enable "codeready-builder-for-rhel-8-${ARCH}-rpms" $SUDO dnf config-manager --add-repo http://apt-mirror.front.sepia.ceph.com/lab-extras/8/ $SUDO dnf config-manager --setopt=apt-mirror.front.sepia.ceph.com_lab-extras_8_.gpgcheck=0 --save fi -- 2.39.5