add feedback when downloading a URI source

otherwise the user sees the curl progress bar w/o explanation
This commit is contained in:
Roland Walker 2014-01-04 07:43:29 -05:00
parent 0d421c432f
commit f223821038
1 changed files with 1 additions and 0 deletions

View File

@ -12,6 +12,7 @@ class Cask::Source::URI
def load def load
HOMEBREW_CACHE_CASKS.mkpath HOMEBREW_CACHE_CASKS.mkpath
path = HOMEBREW_CACHE_CASKS.join(File.basename(uri)) path = HOMEBREW_CACHE_CASKS.join(File.basename(uri))
ohai "Downloading #{uri}"
curl(uri, '-o', path.to_s) curl(uri, '-o', path.to_s)
Cask::Source::Path.new(path).load Cask::Source::Path.new(path).load
rescue ErrorDuringExecution rescue ErrorDuringExecution