From 84ea952df3571d1356a9a328b07e92a90b44fef5 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 1 Dec 2013 22:39:34 -0800 Subject: [PATCH] core: output UI when checksumming --- lib/vagrant/action/builtin/box_add.rb | 4 +++- templates/locales/en.yml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/action/builtin/box_add.rb b/lib/vagrant/action/builtin/box_add.rb index faf97905b..b362a1c6e 100644 --- a/lib/vagrant/action/builtin/box_add.rb +++ b/lib/vagrant/action/builtin/box_add.rb @@ -19,7 +19,7 @@ module Vagrant @download_interrupted = false # Determine the checksum type to use - checksum = env[:box_checksum] + checksum = env[:box_checksum] || "" checksum_klass = case env[:box_checksum_type] when nil nil @@ -65,6 +65,8 @@ module Vagrant @logger.info("Validating checksum with #{checksum_klass}") @logger.info("Expected checksum: #{checksum}") + env[:ui].info(I18n.t("vagrant.actions.box.add.checksumming", + name: env[:box_name])) actual = FileChecksum.new(@temp_path, checksum_klass).checksum if actual != checksum raise Errors::BoxChecksumMismatch, diff --git a/templates/locales/en.yml b/templates/locales/en.yml index ea1dd51f2..582cd91a4 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -1133,6 +1133,8 @@ en: Extracting box... added: |- Successfully added box '%{name}' with provider '%{provider}'! + checksumming: |- + Calculating and comparing box checksum... destroy: destroying: "Deleting box '%{name}'..." download: