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?
already_fetched = f.cached_download.exist?
download = nil
begin
download = f.fetch
rescue => e
rescue DownloadError
retry if retry_fetch? f
raise e
raise
end
return unless download.file?