core: don't make all downloads continuable
This commit is contained in:
parent
034c151720
commit
5d9c002bdd
|
@ -29,6 +29,7 @@ module Vagrant
|
||||||
end
|
end
|
||||||
|
|
||||||
downloader_options = {}
|
downloader_options = {}
|
||||||
|
downloader_options[:continue] = true
|
||||||
downloader_options[:insecure] = env[:box_download_insecure]
|
downloader_options[:insecure] = env[:box_download_insecure]
|
||||||
downloader_options[:ui] = env[:ui]
|
downloader_options[:ui] = env[:ui]
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,7 @@ module Vagrant
|
||||||
|
|
||||||
# Get the various optional values
|
# Get the various optional values
|
||||||
options ||= {}
|
options ||= {}
|
||||||
|
@continue = options[:continue]
|
||||||
@insecure = options[:insecure]
|
@insecure = options[:insecure]
|
||||||
@ui = options[:ui]
|
@ui = options[:ui]
|
||||||
end
|
end
|
||||||
|
@ -38,9 +39,9 @@ module Vagrant
|
||||||
"--max-redirs", "10",
|
"--max-redirs", "10",
|
||||||
"--user-agent", USER_AGENT,
|
"--user-agent", USER_AGENT,
|
||||||
"--output", @destination,
|
"--output", @destination,
|
||||||
"--continue-at", "-"
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
options += ["--continue-at", "-"] if @continue
|
||||||
options << "--insecure" if @insecure
|
options << "--insecure" if @insecure
|
||||||
options << @source
|
options << @source
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue