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: