[master] eee7eb057 circleci: Isolate centos-specific setup
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Tue Feb 15 07:11:06 UTC 2022
commit eee7eb0577d811e85bf88785a3e417c0124a86c2
Author: Guillaume Quintard <guillaume.quintard at gmail.com>
Date: Wed Feb 2 22:19:15 2022 -0800
circleci: Isolate centos-specific setup
Not all RPM-based distributions are EPEL consumers.
Better diff with the --ignore-all-space option.
diff --git a/.circleci/make-rpm-packages.sh b/.circleci/make-rpm-packages.sh
index 56acdad05..63b5ae4a8 100755
--- a/.circleci/make-rpm-packages.sh
+++ b/.circleci/make-rpm-packages.sh
@@ -13,13 +13,12 @@ elif [ -z "$PARAM_DIST" ]; then
exit 1
fi
-yum install -y epel-release
-
if [ "$PARAM_DIST" = centos ]; then
- if [ "$PARAM_RELEASE" = 8 ]; then
- dnf install -y 'dnf-command(config-manager)'
- yum config-manager --set-enabled powertools
- fi
+ if [ "$PARAM_RELEASE" = 8 ]; then
+ dnf install -y 'dnf-command(config-manager)'
+ yum config-manager --set-enabled powertools
+ fi
+ yum install -y epel-release
fi
yum install -y rpm-build yum-utils
More information about the varnish-commit
mailing list