class Bundler::Source::RubygemsAggregate

def build_index

def build_index
  Index.build do |idx|
    dependency_names = source_map.pinned_spec_names
    sources.all_sources.each do |source|
      source.dependency_names = dependency_names - source_map.pinned_spec_names(source)
      idx.add_source source.specs
      dependency_names.concat(source.unmet_deps).uniq!
    end
    double_check_for_index(idx, dependency_names)
  end
end