Use name of formula rather than name of dependency

Closes Homebrew/homebrew#27192.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Troels Thomsen 2014-03-04 16:59:26 +01:00 committed by Jack Nagel
parent 1ab5943fb2
commit fdf5ecf4bb

View File

@ -13,9 +13,9 @@ module Homebrew extend self
f.deps.each do |dep| f.deps.each do |dep|
if dep.optional? || dep.recommended? if dep.optional? || dep.recommended?
tab = Tab.for_formula(f) tab = Tab.for_formula(f)
deps << dep.name if tab.with?(dep.name) deps << dep.to_formula.name if tab.with?(dep.to_formula.name)
else else
deps << dep.name deps << dep.to_formula.name
end end
end end