diff options
| author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2022-03-26 12:25:12 +0100 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2022-06-11 18:43:24 +0900 |
| commit | 3f69774b76067932015dff40d4fd38e9fdfae9ff (patch) | |
| tree | ab4fadb81359888ddce7e67f7971c39395e9acee /lib | |
| parent | a9077af75be7f71e02150343c1172287a4ad05fd (diff) | |
[rubygems/rubygems] No need to redownload if package already there
https://github.com/rubygems/rubygems/commit/285ccbc07e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/bundler/source/rubygems.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/source/rubygems.rb b/lib/bundler/source/rubygems.rb index 8ca43efa19..01feeb75e9 100644 --- a/lib/bundler/source/rubygems.rb +++ b/lib/bundler/source/rubygems.rb @@ -462,6 +462,7 @@ module Bundler cache_path = download_cache_path(spec) || default_cache_path_for(rubygems_dir) gem_path = "#{cache_path}/#{spec.file_name}" + return gem_path if File.exist?(gem_path) if requires_sudo? download_path = Bundler.tmp(spec.full_name) |
