Rescue only DownloadError

This commit is contained in:
Jack Nagel 2014-08-22 22:55:10 -05:00
parent 262a503b6f
commit fd4f985cb6

View File

@ -79,13 +79,12 @@ module Homebrew
f.clear_cache if ARGV.force? f.clear_cache if ARGV.force?
already_fetched = f.cached_download.exist? already_fetched = f.cached_download.exist?
download = nil
begin begin
download = f.fetch download = f.fetch
rescue => e rescue DownloadError
retry if retry_fetch? f retry if retry_fetch? f
raise e raise
end end
return unless download.file? return unless download.file?