summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-02-25 09:40:21 -0800
committerelijah <elijah@riseup.net>2015-02-25 09:40:21 -0800
commit4d1872b1b6fee85e30f7ec71af38f2f28d816b04 (patch)
tree07b5039874d0602c798165826f90ebe24200eb2a /lib
parentc0770e0c5a914a7c7f25349e51b41a16a1154373 (diff)
set Aquire::Languages=none for apt-get update.
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/remote/tasks.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/leap_cli/remote/tasks.rb b/lib/leap_cli/remote/tasks.rb
index 7fd8d64..38a440c 100644
--- a/lib/leap_cli/remote/tasks.rb
+++ b/lib/leap_cli/remote/tasks.rb
@@ -34,10 +34,11 @@ BAD_APT_GET_UPDATE = /(BADSIG|NO_PUBKEY|KEYEXPIRED|REVKEYSIG|NODATA)/
task :install_prerequisites, :max_hosts => MAX_HOSTS do
apt_get = "DEBIAN_FRONTEND=noninteractive apt-get -q -y -o DPkg::Options::=--force-confold"
+ apt_get_update = "apt-get update -o Acquire::Languages=none"
leap.mkdirs Leap::Platform.leap_dir
run "echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen"
leap.log :updating, "package list" do
- run "apt-get update" do |channel, stream, data|
+ run apt_get_update do |channel, stream, data|
# sadly exitcode is unreliable measure if apt-get update hit a failure.
if data =~ BAD_APT_GET_UPDATE
LeapCli::Util.bail! do