]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: remove failing error catching 29403/head
authorErnesto Puerta <epuertat@redhat.com>
Tue, 30 Jul 2019 16:45:44 +0000 (18:45 +0200)
committerErnesto Puerta <epuertat@redhat.com>
Fri, 2 Aug 2019 19:26:40 +0000 (21:26 +0200)
Fixes: https://tracker.ceph.com/issues/41013
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
install-deps.sh

index 4addfbed7cd107ce63408fe75cb453669e1299fc..6b448175599a3ff878a87e0446113702afaa9b9d 100755 (executable)
@@ -374,7 +374,8 @@ else
        if [ -n "$dts_ver" ]; then
             ensure_decent_gcc_on_rh $dts_ver
        fi
-        ! grep -q -i error: $DIR/yum-builddep.out || exit 1
+        IGNORE_YUM_BUILDEP_ERRORS="ValueError: SELinux policy is not managed or store cannot be accessed."
+        sed "/$IGNORE_YUM_BUILDEP_ERRORS/d" $DIR/yum-builddep.out | grep -qi "error:" && exit 1
         # for building python-saml and its dependencies
         $SUDO $yumdnf install -y xmlsec1 xmlsec1-nss xmlsec1-openssl xmlsec1-devel xmlsec1-openssl-devel libtool-ltdl-devel
         ;;