Merge branch 'develop' into stable for v2014.09.24 release

This commit is contained in:
Pedro Algarvio 2014-09-24 15:56:14 +01:00
commit b549ca9d1f
2 changed files with 7 additions and 3 deletions

View file

@ -1,3 +1,7 @@
Version 2014.09.24:
* Fixed salt tag version matching to also accept, for example, v2014.7. #464
* Fix the EPEL 7 URL since epel-release is now 7.2
Version 2014.09.09:
* Distro Support Fixes:
* Updated the URL for EPEL 7

View file

@ -17,7 +17,7 @@
# CREATED: 10/15/2012 09:49:37 PM WEST
#======================================================================================================================
set -o nounset # Treat unset variables as an error
__ScriptVersion="2014.09.09"
__ScriptVersion="2014.09.24"
__ScriptName="bootstrap-salt.sh"
#======================================================================================================================
@ -1157,7 +1157,7 @@ __git_clone_and_checkout() {
fi
else
__SHALLOW_CLONE="${BS_FALSE}"
if [ "$(echo "$GIT_REV" | sed 's/^.*\(v[[:digit:]]\{1,4\}\.[[:digit:]]\{1,2\}\.[[:digit:]]\{1,2\}\).*$/MATCH/')" = "MATCH" ]; then
if [ "$(echo "$GIT_REV" | sed 's/^.*\(v[[:digit:]]\{1,4\}\.[[:digit:]]\{1,2\}\.[[:digit:]]\{1,2\}\)\?.*$/MATCH/')" = "MATCH" ]; then
echoinfo "Git revision matches a Salt version tag"
# Let's try shallow cloning to speed up.
# Test for "--single-branch" option introduced in git 1.7.10, the minimal version of git where the shallow
@ -2517,7 +2517,7 @@ __install_epel_repository() {
elif [ "$DISTRO_MAJOR_VERSION" -eq 6 ]; then
rpm -Uvh --force "http://download.fedoraproject.org/pub/epel/6/${EPEL_ARCH}/epel-release-6-8.noarch.rpm" || return 1
elif [ "$DISTRO_MAJOR_VERSION" -eq 7 ]; then
rpm -Uvh --force "http://download.fedoraproject.org/pub/epel/7/${EPEL_ARCH}/e/epel-release-7-1.noarch.rpm" || return 1
rpm -Uvh --force "http://download.fedoraproject.org/pub/epel/7/${EPEL_ARCH}/e/epel-release-7-2.noarch.rpm" || return 1
else
echoerror "Failed add EPEL repository support."
return 1