class Bundler::Index

def initialize_copy(o)

def initialize_copy(o)
  super
  @sources = @sources.dup
  @cache = {}
  @specs = Hash.new { |h,k| h[k] = Hash.new }
  @all_specs = Hash.new { |h,k| h[k] = [] }
  o.specs.each do |name, hash|
    @specs[name] = hash.dup
  end
  o.all_specs.each do |name, array|
    @all_specs[name] = array.dup
  end
end