Permalink
Browse files

Fix incremental index updates

Initialize Gem::Specification in the same way when incrementally
updating indexes as in a full reindex.

Fixes rubygems#232
  • Loading branch information...
1 parent a1827da commit 6bb445fea7dfde18c481615aa75273c92931b9fd @jfoy jfoy committed Aug 24, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/rubygems/indexer.rb
View
@@ -584,6 +584,9 @@ def update_index
specs = map_gems_to_specs updated_gems
prerelease, released = specs.partition { |s| s.version.prerelease? }
+ Gem::Specification.dirs = []
+ Gem::Specification.add_specs(*specs)
+
files = build_marshal_gemspecs
Gem.time 'Updated indexes' do

0 comments on commit 6bb445f

Please sign in to comment.