diff options
author | Andre Arko <andre@arko.net> | 2015-02-06 15:29:28 +1100 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2015-02-08 11:15:38 +1100 |
commit | 0dfceb1164361aeaa394de44289dfcb983779081 (patch) | |
tree | 2ade703b335f8a8c5952f91f3984e36f6d6d914a | |
parent | b6e20909138351744ae09e3a91d94f69a9cc25be (diff) | |
download | bundler-0dfceb1164361aeaa394de44289dfcb983779081.tar.gz |
only remove each name once
-rw-r--r-- | lib/bundler/definition.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index 3afb53ba9e..0d51770ac3 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -202,7 +202,7 @@ module Bundler sources.all_sources.each do |s| s.dependency_names = dependency_names.dup idx.add_source s.specs - s.specs.each { |spec| dependency_names.delete(spec.name) } + dependency_names -= s.specs.map{|s| s.name }.uniq dependency_names.push(*s.unmet_deps).uniq! end end |