formula: handle missing deps when formula missing.

We could try and get a partial result but given it'll also be wrong it
feels simpler to just return an empty array.

Fixes #1928.
Fixes #2027.
Closes #2058.
Fixes https://github.com/Homebrew/homebrew-core/issues/11827.
This commit is contained in:
Mike McQuaid 2017-03-30 18:54:47 +01:00
parent 0882e9ddbc
commit 689c1d5aa1

View File

@ -1555,6 +1555,8 @@ class Formula
hide.include?(d.name) || d.installed_prefixes.empty? hide.include?(d.name) || d.installed_prefixes.empty?
end end
missing_dependencies missing_dependencies
rescue FormulaUnavailableError
[]
end end
# @private # @private