]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
install-deps.sh: do not download i18n apt index
authorKefu Chai <kchai@redhat.com>
Fri, 22 Dec 2017 04:20:19 +0000 (12:20 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 30 Dec 2017 15:20:07 +0000 (23:20 +0800)
and do not fail the `apt-get update` command, if any mirror is not
reachable.

Signed-off-by: Kefu Chai <kchai@redhat.com>
install-deps.sh

index b8c1f8a1b3fd70a0883b495cf5183aac9a23b5d5..0e86a9114dc2b20d3214cd09116b77cb9cd49b46 100755 (executable)
@@ -45,7 +45,7 @@ deb http://mirror.yandex.ru/mirrors/launchpad/ubuntu-toolchain-r $dist main
 EOF
        # import PPA's signing key into APT's keyring
        $SUDO apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1E9377A2BA9EF27F
-       $SUDO apt-get update
+       $SUDO apt-get -y update -o Acquire::Languages=none -o Acquire::Translation=none || true
        $SUDO apt-get install -y g++-7
     fi