check_undeclared_deps: Fix for taps

undeclared_deps reported all dependencies in taps as undeclared.
This commit is contained in:
Shaun Jackman 2018-03-05 09:51:27 -08:00
parent 02682d3bc9
commit 4af8950f8b

View File

@ -63,7 +63,7 @@ class LinkageChecker
formula.build.without?(dep)
end
declared_deps = formula.deps.reject { |dep| filter_out.call(dep) }.map(&:name)
recursive_deps = keg.to_formula.runtime_dependencies.map { |dep| dep.to_formula.full_name }
recursive_deps = keg.to_formula.runtime_dependencies.map { |dep| dep.to_formula.name }
declared_dep_names = declared_deps.map { |dep| dep.split("/").last }
indirect_deps = []
undeclared_deps = []