aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/installer.rb
diff options
context:
space:
mode:
authorCarlhuda <carlhuda@engineyard.com>2010-03-09 14:53:27 -0800
committerCarlhuda <carlhuda@engineyard.com>2010-03-09 14:53:27 -0800
commit55a4c22ba909a99f5da7d92945090c162fe0f4ef (patch)
tree6666ce689d98bdcc31eb9189ec4a0b6b482f7df1 /lib/bundler/installer.rb
parent248ca3489de22f889a7243f571d8341c733cd52e (diff)
downloadbundler-55a4c22ba909a99f5da7d92945090c162fe0f4ef.tar.gz
Don't constantly reinstall packed gems
Diffstat (limited to 'lib/bundler/installer.rb')
-rw-r--r--lib/bundler/installer.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bundler/installer.rb b/lib/bundler/installer.rb
index e31ec1df..d58b7c64 100644
--- a/lib/bundler/installer.rb
+++ b/lib/bundler/installer.rb
@@ -131,11 +131,12 @@ module Bundler
index = source.local_specs.merge(index)
end
+ index = Index.from_installed_gems.merge(index)
+
if File.directory?("#{root}/vendor/cache")
index = cache_source.specs.merge(index).freeze
end
- index = Index.from_installed_gems.merge(index)
Index.from_cached_specs("#{Bundler.bundle_path}/cache").merge(index)
end
end