Merge pull request #242 from vhgroup/develop

add-apt-repository was moved to software-properties-common in version 12...
This commit is contained in:
Pedro Algarvio 2013-09-27 15:14:34 -07:00
commit 92abdec4d1

View file

@ -1250,7 +1250,7 @@ __enable_universe_repository() {
install_ubuntu_deps() {
apt-get update
if [ $DISTRO_MAJOR_VERSION -eq 12 ] || [ $DISTRO_MAJOR_VERSION -gt 12 ]; then
if [ $DISTRO_MAJOR_VERSION -gt 12 ] || [ $DISTRO_MAJOR_VERSION -eq 12 -a $DISTRO_MINOR_VERSION -eq 10 ]; then
# Above Ubuntu 11.10 add-apt-repository is in a different package
__apt_get_install_noinput software-properties-common || return 1
else