From a290480ec96a423eaf3753796367d0632e4c06ff Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 23 Nov 2013 15:51:10 -0800 Subject: [PATCH] core: output when resuming box download --- lib/vagrant/action/builtin/box_add.rb | 5 +++++ templates/locales/en.yml | 1 + 2 files changed, 6 insertions(+) diff --git a/lib/vagrant/action/builtin/box_add.rb b/lib/vagrant/action/builtin/box_add.rb index 82ee0da75..b132ef202 100644 --- a/lib/vagrant/action/builtin/box_add.rb +++ b/lib/vagrant/action/builtin/box_add.rb @@ -37,6 +37,11 @@ module Vagrant # path as an instance variable so that the `#recover` method can # access it. env[:ui].info(I18n.t("vagrant.actions.box.download.downloading")) + + if @temp_path.file? + env[:ui].info(I18n.t("vagrant.actions.box.download.resuming")) + end + begin downloader = Util::Downloader.new(url, @temp_path, downloader_options) downloader.download! diff --git a/templates/locales/en.yml b/templates/locales/en.yml index 52091a1d1..c9381f974 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -1120,6 +1120,7 @@ en: cleaning: "Cleaning up downloaded box..." downloading: "Downloading or copying the box..." interrupted: "Box download was interrupted. Exiting." + resuming: "Box download is resuming from prior download progress" verify: verifying: "Verifying box..." failed: |-