Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Auto merge of #4875 - jkeiser:retry-download-gem, r=indirect
Browse files Browse the repository at this point in the history
Retry gem downloads

Fixes #4846
  • Loading branch information
homu committed Aug 14, 2016
2 parents 1873fa5 + ce82494 commit 0e286fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/bundler/rubygems_integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,9 @@ def build_gem(gem_dir, spec)
def download_gem(spec, uri, path)
uri = Bundler.settings.mirror_for(uri)
fetcher = Gem::RemoteFetcher.new(configuration[:http_proxy])
fetcher.download(spec, uri, path)
Bundler::Retry.new("download gem #{uri}", Gem::RemoteFetcher::FetchError).attempts do
fetcher.download(spec, uri, path)
end
end

def security_policy_keys
Expand Down

0 comments on commit 0e286fd

Please sign in to comment.