formula: handle unavailable missing formulae.

Fixes #4494.
This commit is contained in:
Mike McQuaid 2018-07-17 14:59:50 +01:00
parent e4f4687261
commit e63d490874

View File

@ -1557,6 +1557,10 @@ class Formula
runtime_formula_dependencies.select do |f| runtime_formula_dependencies.select do |f|
hide.include?(f.name) || f.installed_prefixes.empty? hide.include?(f.name) || f.installed_prefixes.empty?
end end
# If we're still getting unavailable formulae at this stage the best we can
# do is just return no results.
rescue FormulaUnavailableError
[]
end end
# @private # @private