Fixed inaccurate downloading status message
Importing a base box from the local file system currently outputs 'Downloading: file://...' which is more accurate now by presenting it as: 'Unpacking necessary files from: file://...'. Fixes #5386.
This commit is contained in:
parent
92762eeb8c
commit
6c2cc31926
|
@ -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"))
|
||||
|
|
|
@ -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: |-
|
||||
|
|
Loading…
Reference in New Issue