We also need python-chardet from Chris Lea's PPA

This commit is contained in:
Pedro Algarvio 2015-07-22 13:11:01 +01:00
parent b2bceffd44
commit 532189460f

View file

@ -1764,12 +1764,14 @@ install_ubuntu_deps() {
# Need python-apt for managing packages via Salt
__PACKAGES="${__PACKAGES} python-apt"
echoinfo "Installing Python Requests from Chris Lea's PPA repository"
echoinfo "Installing Python Requests/Chardet from Chris Lea's PPA repository"
if [ "$DISTRO_MAJOR_VERSION" -gt 11 ] || ([ "$DISTRO_MAJOR_VERSION" -eq 11 ] && [ "$DISTRO_MINOR_VERSION" -gt 04 ]); then
# Above Ubuntu 11.04 add a -y flag
add-apt-repository -y "ppa:chris-lea/python-requests" || return 1
add-apt-repository -y "ppa:chris-lea/python-chardet" || return 1
else
add-apt-repository "ppa:chris-lea/python-requests" || return 1
add-apt-repository "ppa:chris-lea/python-chardet" || return 1
fi
__PACKAGES="${__PACKAGES} python-requests"