mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix RubyGems for 1.9, r1780
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9d4f37f51f
commit
215fbc639f
10 changed files with 86 additions and 90 deletions
|
@ -111,10 +111,10 @@ Will cause RubyGems to revert to legacy indexes, degrading performance.
|
|||
fetcher = Gem::SpecFetcher.fetcher
|
||||
|
||||
if fetcher.legacy_repos.empty? then
|
||||
Gem.sources.each do |source_uri|
|
||||
source_uri = URI.parse source_uri
|
||||
fetcher.load_specs source_uri, 'specs'
|
||||
fetcher.load_specs source_uri, 'latest_specs'
|
||||
Gem.sources.each do |update_uri|
|
||||
update_uri = URI.parse update_uri
|
||||
fetcher.load_specs update_uri, 'specs'
|
||||
fetcher.load_specs update_uri, 'latest_specs'
|
||||
end
|
||||
else
|
||||
Gem::SourceInfoCache.cache true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue