diff --git a/schutzbot/mockbuild.sh b/schutzbot/mockbuild.sh index 62683ccf98..a87c65c2dd 100755 --- a/schutzbot/mockbuild.sh +++ b/schutzbot/mockbuild.sh @@ -10,7 +10,7 @@ function greenprint { source /etc/os-release ARCH=$(uname -m) -# Mock is only available in EPEL for RHEL. +# Mock and s3cmd is only available in EPEL for RHEL. if [[ $ID == rhel ]] && ! rpm -q epel-release; then greenprint "📦 Setting up EPEL repository" curl -Ls --retry 5 --output /tmp/epel.rpm \ @@ -27,13 +27,7 @@ fi # Install requirements for building RPMs in mock. greenprint "📦 Installing mock requirements" -sudo dnf -y install createrepo_c make mock python3-pip rpm-build - -# Install s3cmd if it is not present. -if ! s3cmd --version > /dev/null 2>&1; then - greenprint "📦 Installing s3cmd" - sudo pip3 -q install s3cmd -fi +sudo dnf -y install createrepo_c make mock rpm-build s3cmd # Jenkins sets a workspace variable as the root of its working directory. WORKSPACE=${WORKSPACE:-$(pwd)}