From ec3f5c8f8a7b934c3cc516fdbb8ce43697db565c Mon Sep 17 00:00:00 2001 From: Nizamudeen A Date: Tue, 16 Aug 2022 21:09:25 +0530 Subject: [PATCH] install-deps: script exit on /ValueError: in centos_stream8 this is happening locally as well as in our ceph-dev runs too https://github.com/rhcs-dashboard/ceph-dev/runs/7850564011 Signed-off-by: Nizamudeen A (cherry picked from commit b73d7d22d4dad5188d06fdec4892148af0757dc5) --- install-deps.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install-deps.sh b/install-deps.sh index 01f883e86b34d..d338156415855 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -357,7 +357,7 @@ else ;; centos|rhel|ol|virtuozzo) MAJOR_VERSION="$(echo $VERSION_ID | cut -d. -f1)" - $SUDO dnf install -y dnf-utils + $SUDO dnf install -y dnf-utils selinux-policy-targeted rpm --quiet --query epel-release || \ $SUDO dnf -y install --nogpgcheck https://dl.fedoraproject.org/pub/epel/epel-release-latest-$MAJOR_VERSION.noarch.rpm $SUDO rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-$MAJOR_VERSION @@ -381,7 +381,7 @@ else $SUDO $builddepcmd $DIR/ceph.spec 2>&1 | tee $DIR/yum-builddep.out [ ${PIPESTATUS[0]} -ne 0 ] && 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 + sed "/$IGNORE_YUM_BUILDEP_ERRORS/d" $DIR/yum-builddep.out | grep -i "error:" && exit 1 ;; opensuse*|suse|sles) echo "Using zypper to install dependencies" -- 2.39.5