Merge pull request #4502 from MikeMcQuaid/formula-missing-unavailable

formula: handle unavailable missing formulae.
This commit is contained in:
Mike McQuaid 2018-07-17 15:13:26 +01:00 committed by GitHub
commit af11c6581a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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