From: Kefu Chai Date: Wed, 19 Dec 2018 08:37:55 +0000 (+0800) Subject: install-deps.sh: skip unavailable repos X-Git-Tag: v12.2.13~109^2~4 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d85be2a95a7897801fb93faa6aa5a0d8d9188f59;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 7d9742915aa..c6fefbac5e6 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -185,7 +185,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"