]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: babeltrace is not on wheezy 3603/head
authorLoic Dachary <ldachary@redhat.com>
Tue, 3 Feb 2015 16:40:41 +0000 (17:40 +0100)
committerLoic Dachary <ldachary@redhat.com>
Tue, 3 Feb 2015 16:40:41 +0000 (17:40 +0100)
The babeltrace package is not found on wheezy, not just squeeze.
Fix the regular expression that incorrectly replaced
libbabeltrace-ctf-dev with -ctf-dev leading to a strange error

E: Opening configuration file tf-dev - ifstream::ifstream (2: No such file or directory)

when running apt-get install.

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

index 548f3c366eae4d448e2aa67fb5d22b142118f7f0..3742f2c6a2cb9bc76cc1be07d4393b4da15ba2ce 100755 (executable)
@@ -37,8 +37,8 @@ Ubuntu|Debian|Devuan)
             -e 's/\(.*?\)//g;' \
             -e 's/ +/\n/g;' | sort)
         case $(lsb_release -sc) in
-            squeeze)
-                packages=$(echo $packages | perl -pe 's/\w*babeltrace\w*//g')
+            squeeze|wheezy)
+                packages=$(echo $packages | perl -pe 's/[-\w]*babeltrace[-\w]*//g')
                 ;;
         esac
         $SUDO apt-get install -y $packages