aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorMike McQuaid2017-03-30 18:54:47 +0100
committerMike McQuaid2017-03-30 18:54:47 +0100
commit689c1d5aa125de2c4dd55a5e59a030afd3cb8475 (patch)
tree705c0d72d09a86cf2e60f442cc56be745934428d /Library/Homebrew/formula.rb
parent0882e9ddbc2b4507038d87e21233ce29031b995b (diff)
downloadbrew-689c1d5aa125de2c4dd55a5e59a030afd3cb8475.tar.bz2
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.
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 443619206..f3c3c80fe 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