diff options
| author | Mike McQuaid | 2017-04-18 08:43:39 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-04-18 08:43:39 +0100 |
| commit | 1330b7441676da82ae89591b5d60e2e3f7b8ebe2 (patch) | |
| tree | fca0fa057bd11a34ef9bb9d41bcad230f641050e /Library/Homebrew/cmd | |
| parent | 417f49dd32bfe555b20f3f7d88e2739f6623991b (diff) | |
| download | brew-1330b7441676da82ae89591b5d60e2e3f7b8ebe2.tar.bz2 | |
install: don't search when formula is unreadable.
These formulae are detected as missing but exist in an unreadable form.
Fixes #2485
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 3 |
1 files changed, 2 insertions, 1 deletions
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). |
