diff options
author | Carlhuda <carlhuda@engineyard.com> | 2010-03-09 14:53:27 -0800 |
---|---|---|
committer | Carlhuda <carlhuda@engineyard.com> | 2010-03-09 14:53:27 -0800 |
commit | 55a4c22ba909a99f5da7d92945090c162fe0f4ef (patch) | |
tree | 6666ce689d98bdcc31eb9189ec4a0b6b482f7df1 /lib/bundler/installer.rb | |
parent | 248ca3489de22f889a7243f571d8341c733cd52e (diff) | |
download | bundler-55a4c22ba909a99f5da7d92945090c162fe0f4ef.tar.gz |
Don't constantly reinstall packed gems
Diffstat (limited to 'lib/bundler/installer.rb')
-rw-r--r-- | lib/bundler/installer.rb | 3 |
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 |