]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commit
scripts/build_utils.sh: add lang=none option to sources.list 1137/head
authorKefu Chai <kchai@redhat.com>
Fri, 28 Sep 2018 03:15:01 +0000 (11:15 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 28 Sep 2018 03:34:28 +0000 (11:34 +0800)
commitaa89021f6fd7466de776e183f0b5e2a27d43320d
treec6f271dcce9de0e2d8aa9b84395fef4f39180692
parentb54b4e159e3c58cf853d095491b295a09122911c
scripts/build_utils.sh: add lang=none option to sources.list

some mirrors do not contains the package description translations. when
apt tries to download the packages descriptions, it fails like:

E: Failed to fetch
http://mirror.yandex.ru/mirrors/launchpad/ubuntu-toolchain-r/dists/xenial/main/i18n/Translation-en
404  Not Found [IP: 213.180.204.183 80]
E: Some index files failed to download. They have been ignored, or old
ones used instead.

for more info, see sources.list(5) and apt.conf(5). the default value
of "lang" is set by Acquire::Languages, which is in turn "en" and
"environment" by default. we need to override them with "none".

Fixes #1136
Signed-off-by: Kefu Chai <kchai@redhat.com>
scripts/build_utils.sh