]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: skip unavailable repos
authorKefu Chai <kchai@redhat.com>
Wed, 19 Dec 2018 08:37:55 +0000 (16:37 +0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 4 Oct 2019 15:33:46 +0000 (17:33 +0200)
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 <bhubbard@redhat.com>
(cherry picked from commit aa2b9e9a643441d9a2891e17920677a7725754c4)

install-deps.sh

index 7d9742915aae515425693350076b64827ed9086a..c6fefbac5e6bc35377dab1fa0a400c009140e64f 100755 (executable)
@@ -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"