Skip to content

Commit 0b55243

Browse files
committed
The upcoming v2015.8.xx stable releases also need Tornado
1 parent 4f62a02 commit 0b55243

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

bootstrap-salt.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,8 @@ elif [ "$ITYPE" = "stable" ]; then
426426
STABLE_REV="latest"
427427
else
428428
__check_unparsed_options "$*"
429-
if [ "$(echo "$1" | egrep '^(latest|1\.6|1\.7|2014\.1|2014\.7|2015\.5)$')" = "" ]; then
430-
echo "Unknown stable version: $1 (valid: 1.6, 1.7, 2014.1, 2014.7, 2015.5, latest)"
429+
if [ "$(echo "$1" | egrep '^(latest|1\.6|1\.7|2014\.1|2014\.7|2015\.5|2015\.8)$')" = "" ]; then
430+
echo "Unknown stable version: $1 (valid: 1.6, 1.7, 2014.1, 2014.7, 2015.5, 2015.8, latest)"
431431
exit 1
432432
else
433433
STABLE_REV="$1"
@@ -1828,6 +1828,16 @@ install_ubuntu_stable_deps() {
18281828
add-apt-repository "ppa:$STABLE_PPA" || return 1
18291829
fi
18301830

1831+
if [ ! "$(echo "$STABLE_REV" | egrep '^(2015\.8|latest)$')" = "" ]; then
1832+
# We need a recent tornado package
1833+
__REQUIRED_TORNADO="tornado >= 4.0"
1834+
check_pip_allowed "You need to allow pip based installations (-P) in order to install the python package '${__REQUIRED_TORNADO}'"
1835+
if [ "$(which pip)" = "" ]; then
1836+
__apt_get_install_noinput python-setuptools python-pip
1837+
fi
1838+
pip install -U "${__REQUIRED_TORNADO}"
1839+
fi
1840+
18311841
apt-get update
18321842
}
18331843

0 commit comments

Comments
 (0)