diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index fd08845c446bd5878a6b319046604e5e80bef1ad..a1f903b7b1a09936ca6ac789c6ea39dec8b962c8 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -122,7 +122,7 @@ module Homebrew unless f.deps.empty? ohai "Dependencies" %w{build required recommended optional}.map do |type| - deps = f.deps.send(type) + deps = f.deps.send(type).uniq puts "#{type.capitalize}: #{decorate_dependencies deps}" unless deps.empty? end end diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 082a8e80fac7592aa2010254eb14484afab7a28c..d9004c72ac064adcf4d4b8f2ab15aeace1205ea8 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -593,7 +593,7 @@ class Formula "installed" => [], "linked_keg" => (linked_keg.resolved_path.basename.to_s if linked_keg.exist?), "keg_only" => keg_only?, - "dependencies" => deps.map(&:name), + "dependencies" => deps.map(&:name).uniq, "conflicts_with" => conflicts.map(&:name), "caveats" => caveats }