summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2015-02-06 15:29:28 +1100
committerAndre Arko <andre@arko.net>2015-02-08 11:15:38 +1100
commit0dfceb1164361aeaa394de44289dfcb983779081 (patch)
tree2ade703b335f8a8c5952f91f3984e36f6d6d914a
parentb6e20909138351744ae09e3a91d94f69a9cc25be (diff)
downloadbundler-0dfceb1164361aeaa394de44289dfcb983779081.tar.gz
only remove each name once
-rw-r--r--lib/bundler/definition.rb2
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