diff options
author | Andre Arko <andre@arko.net> | 2010-06-21 12:08:34 -0700 |
---|---|---|
committer | wycats <wycats@gmail.com> | 2010-06-29 14:53:27 -0700 |
commit | 655c5343254f67eb5f74a403baa07d873735fa23 (patch) | |
tree | a322c3f7103c9920570673cd18e838510be79e8d | |
parent | 74c85bca6db7c6280a6bb7548043ff74fb55173d (diff) | |
download | bundler-655c5343254f67eb5f74a403baa07d873735fa23.tar.gz |
Fix the last fix for missing bundler gems
-rw-r--r-- | lib/bundler/resolver.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/bundler/resolver.rb b/lib/bundler/resolver.rb index 1cdb6a6e36..0910d44fd8 100644 --- a/lib/bundler/resolver.rb +++ b/lib/bundler/resolver.rb @@ -195,12 +195,8 @@ module Bundler if existing || current.name == 'bundler' # Force the current if current.name == 'bundler' && !existing - bundler_gem = search(DepProxy.new(Gem::Dependency.new('bundler', VERSION), Gem::Platform::RUBY)).first - if bundler_gem - activated[current.name] = bundler_gem - else - raise GemNotFound, %Q{Bundler could not find gem "bundler" (#{VERSION})} - end + existing = search(DepProxy.new(Gem::Dependency.new('bundler', VERSION), Gem::Platform::RUBY)).first + raise GemNotFound, %Q{Bundler could not find gem "bundler" (#{VERSION})} unless existing end if current.requirement.satisfied_by?(existing.version) |