From 689c1d5aa125de2c4dd55a5e59a030afd3cb8475 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 30 Mar 2017 18:54:47 +0100 Subject: [PATCH] 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. --- Library/Homebrew/formula.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 4436192063..f3c3c80feb 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -1555,6 +1555,8 @@ class Formula hide.include?(d.name) || d.installed_prefixes.empty? end missing_dependencies + rescue FormulaUnavailableError + [] end # @private