diff options
| author | Mike McQuaid | 2017-03-20 20:37:12 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-03-20 20:37:12 +0100 |
| commit | f59eb358c29c5f40601a99e3f1bf7e8e891f10ba (patch) | |
| tree | 86c8ad1406611325251b111c83e212a007ced7d1 /Library/Homebrew/cmd/install.rb | |
| parent | 80e95b684e7485b5c5b7f7209dd95b0bdc9e3406 (diff) | |
| download | brew-f59eb358c29c5f40601a99e3f1bf7e8e891f10ba.tar.bz2 | |
missing_formula: subsume historic logic.
These methods belong together so combine them in a single class to
provide a simpler API.
Diffstat (limited to 'Library/Homebrew/cmd/install.rb')
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index a0f95887b..bd7897171 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -62,7 +62,6 @@ require "formula_installer" require "tap" require "hardware" require "development_tools" -require "historic" module Homebrew module_function @@ -207,24 +206,13 @@ module Homebrew # formula was found, but there's a problem with its implementation). ofail e.message rescue FormulaUnavailableError => e - if (missing_formula = Homebrew::MissingFormula.missing_formula(e.name)) - ofail "#{e.message}\n#{missing_formula}" + if (reason = Homebrew::MissingFormula.reason(e.name)) + ofail "#{e.message}\n#{reason}" elsif e.name == "updog" ofail "What's updog?" else ofail e.message - migrations = search_for_migrated_formula(e.name) - return unless migrations.empty? - - ohai "Searching among deleted formulae..." - begin - search_for_deleted_formula(e.name) - return - rescue - nil - end - query = query_regexp(e.name) ohai "Searching for similarly named formulae..." |
