From 1330b7441676da82ae89591b5d60e2e3f7b8ebe2 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 18 Apr 2017 08:43:39 +0100 Subject: install: don't search when formula is unreadable. These formulae are detected as missing but exist in an unreadable form. Fixes #2485 --- Library/Homebrew/cmd/install.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index fd7aede86..394b31db0 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -206,7 +206,8 @@ module Homebrew Migrator.migrate_if_needed(f) install_formula(f) end - rescue FormulaClassUnavailableError => e + rescue FormulaUnreadableError, FormulaClassUnavailableError, + TapFormulaUnreadableError, TapFormulaClassUnavailableError => e # Need to rescue before `FormulaUnavailableError` (superclass of this) # is handled, as searching for a formula doesn't make sense here (the # formula was found, but there's a problem with its implementation). -- cgit v1.2.3