Merge pull request #5395 from delftswa2014/fix-local-download

Fixed inaccurate downloading status message
This commit is contained in:
Seth Vargo 2015-05-30 12:33:28 -07:00
commit cecd15edac
2 changed files with 10 additions and 1 deletions

View File

@ -420,8 +420,15 @@ module Vagrant
show_url = opts[:show_url]
show_url ||= url
textLoading = "vagrant.box_downloading"
# Adjust status message when 'downloading' a local box.
if(show_url.start_with?('file://'))
textLoading = "vagrant.box_unpacking"
end
env[:ui].detail(I18n.t(
"vagrant.box_downloading",
textLoading,
url: show_url))
if File.file?(d.destination)
env[:ui].info(I18n.t("vagrant.actions.box.download.resuming"))

View File

@ -24,6 +24,8 @@ en:
Downloading: %{url}
box_download_error: |-
Error downloading: %{message}
box_unpacking: |-
Unpacking necessary files from: %{url}
box_expanding_url: |-
URL: %{url}
box_loading_metadata: |-