]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: Debian GNU/Linux wheezy needs backports 4327/head
authorLoic Dachary <ldachary@redhat.com>
Fri, 10 Apr 2015 07:26:14 +0000 (09:26 +0200)
committerLoic Dachary <ldachary@redhat.com>
Fri, 10 Apr 2015 21:51:45 +0000 (23:51 +0200)
It is not enough for the backports to be available, they also need to be
explicitly allowed to take precedence whenever a package is installed
indirectly. This is causing problems with libp11-kit-dev pulled by
libcurl4-gnutls-dev.

Signed-off-by: Loic Dachary <ldachary@redhat.com>
install-deps.sh

index c741425b4c364593401a43bb0210d6e384af12b6..6fea6bdd182bda19bfa76144d7395c66a984c777 100755 (executable)
@@ -48,10 +48,11 @@ Ubuntu|Debian|Devuan)
         case $(lsb_release -sc) in
             squeeze|wheezy)
                 packages=$(echo $packages | perl -pe 's/[-\w]*babeltrace[-\w]*//g')
+                backports="-t $(lsb_release -sc)-backports"
                 ;;
         esac
         packages=$(echo $packages) # change newlines into spaces
-        $SUDO bash -c "DEBIAN_FRONTEND=noninteractive apt-get install -y $packages"
+        $SUDO bash -c "DEBIAN_FRONTEND=noninteractive apt-get install $backports -y $packages"
         ;;
 CentOS|Fedora|RedHatEnterpriseServer)
         case $(lsb_release -si) in