]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: strip | in the list of packages
authorLoic Dachary <ldachary@redhat.com>
Thu, 5 Mar 2015 10:38:18 +0000 (11:38 +0100)
committerLoic Dachary <ldachary@redhat.com>
Sat, 7 Mar 2015 01:40:13 +0000 (02:40 +0100)
Alternatives were introduced lately and the | needs to be stripped from
the list of packages to install otherwise apt-get will try to install
all packages.

Signed-off-by: Yann Dupont <yann@objoo.org>
install-deps.sh

index cb050d692ad5288c274862afc7d90d3c537fc305..dab02cfaac2d8420899362d4ae46cc9f843f2530 100755 (executable)
@@ -38,6 +38,7 @@ Ubuntu|Debian|Devuan)
         packages=$(dpkg-checkbuilddeps --admindir=$DIR debian/control 2>&1 | \
             perl -p -e 's/.*Unmet build dependencies: *//;' \
             -e 's/build-essential:native/build-essential/;' \
+            -e 's/\|//g;' \
             -e 's/\(.*?\)//g;' \
             -e 's/ +/\n/g;' | sort)
         case $(lsb_release -sc) in