formula: build dependencies are never missing.

If the formula is already installed and they've been removed: that's ok.

Fixes #2625.
This commit is contained in:
Mike McQuaid 2017-05-21 13:51:33 +01:00
parent 7000f50d5f
commit 49e8c19feb

View File

@ -1553,11 +1553,11 @@ class Formula
def missing_dependencies(hide: nil)
hide ||= []
missing_dependencies = recursive_dependencies do |dependent, dep|
if dep.optional? || dep.recommended?
if dep.build?
Dependency.prune
elsif dep.optional? || dep.recommended?
tab = Tab.for_formula(dependent)
Dependency.prune unless tab.with?(dep)
elsif dep.build?
Dependency.prune
end
end