Use DIB_EPEL_MIRROR when finding the epel-release package

download.fedoraproject.org uses dns round robin and occasionally
hits a bad server. Using DIB_EPEL_MIRROR when finding the
epel-release package will allow us to avoid it e.g. in ci.

Change-Id: I756223b3e669532476663c05e79c238449b8a0db
This commit is contained in:
Derek Higgins 2015-10-20 12:53:19 +01:00
parent b902189eaa
commit 0c0c7275a9

View File

@ -12,7 +12,7 @@ if [ 'amd64' = "$ARCH" ] ; then
ARCH="x86_64"
fi
BASE_URL=http://download.fedoraproject.org/pub/epel
BASE_URL=${DIB_EPEL_MIRROR:-http://download.fedoraproject.org/pub/epel}
case "$DISTRO_NAME" in
rhel7|centos7)
RELEASE=7