From: Kefu Chai Date: Wed, 19 Dec 2018 08:37:55 +0000 (+0800) Subject: install-deps.sh: skip unavailable repos X-Git-Tag: v13.2.7~139^2~8 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=17c4656d97370f2da24afedfa8fb9711445320c6;p=ceph.git install-deps.sh: skip unavailable repos as centos-sclo-rh-source leads us to 404 at this moment. and we are not using the source repo for building ceph. so we can just skip any unavailable repo. Fixes: http://tracker.ceph.com/issues/37707 Signed-off-by: Brad Hubbard (cherry picked from commit aa2b9e9a643441d9a2891e17920677a7725754c4) --- diff --git a/install-deps.sh b/install-deps.sh index 21634d75c6c2..e102bd034fba 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -213,7 +213,7 @@ else ;; centos|fedora|rhel|ol|virtuozzo) yumdnf="yum" - builddepcmd="yum-builddep -y" + builddepcmd="yum-builddep -y --setopt=*.skip_if_unavailable=true" if test "$(echo "$VERSION_ID >= 22" | bc)" -ne 0; then yumdnf="dnf" builddepcmd="dnf -y builddep --allowerasing"