]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
scripts/build_utils.sh: handle lowercase CentOS dnf repo names 1733/head
authorDan Mick <dmick@redhat.com>
Fri, 29 Jan 2021 03:24:53 +0000 (03:24 +0000)
committerDan Mick <dmick@redhat.com>
Fri, 29 Jan 2021 03:35:46 +0000 (03:35 +0000)
Signed-off-by: Dan Mick <dmick@redhat.com>
scripts/build_utils.sh

index bbc2f4a547966c215be8ddb78438d6b653302fd1..57ee3c6f20986eb4ddabaa2a77463457fc3b7d0a 100644 (file)
@@ -1257,7 +1257,9 @@ setup_rpm_build_deps() {
             $SUDO yum-config-manager --enable centos-sclo-rh-testing
         fi
     elif [ "$RELEASE" = 8 ]; then
-        $SUDO dnf config-manager --set-enabled PowerTools
+        # centos 8.3 changes to lowercase repo names
+        $SUDO dnf config-manager --set-enabled PowerTools || \
+            $SUDO dnf config-manager --set-enabled powertools
         $SUDO dnf -y module enable javapackages-tools
         # before EPEL8 and PowerTools provide all dependencies, we use sepia for the dependencies
         $SUDO dnf config-manager --add-repo http://apt-mirror.front.sepia.ceph.com/lab-extras/8/