]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
bug: error when installing ceph dependencies with install-deps.sh 3466/head
authordelco225 <delco225>
Fri, 23 Jan 2015 09:32:30 +0000 (10:32 +0100)
committerdelco225 <delco225>
Sat, 24 Jan 2015 00:35:27 +0000 (01:35 +0100)
The parsing is sensitive to i18n and will fail if, for instance, it is set to French.
Workaround the problem by always setting the language to C so the script
can safely assume all output will be in english.

http://tracker.ceph.comm/issues/10596 Fixes: #10596

Signed-off-by: Ahoussi Armand <ahoussi.say@telecom-bretagne.eu>
install-deps.sh

index 8bbfaaded9da697375cebe5aa79fc69723dd2f1e..7eab02949b1a9133348d230fdcf5a8655675ed0d 100755 (executable)
 DIR=/tmp/install-deps.$$
 trap "rm -fr $DIR" EXIT
 mkdir -p $DIR
-
 if test $(id -u) != 0 ; then
     SUDO=sudo
 fi
-
+export LC_ALL=C# the following is vulnerable to i18n
 case $(lsb_release -si) in
 Ubuntu|Debian|Devuan)
         $SUDO apt-get install -y dpkg-dev