diff options
| author | Mike McQuaid | 2013-10-30 12:33:20 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2013-10-31 17:20:00 -0700 |
| commit | b0bf181788f4c0b0b5a9835133c3126e5011ec6c (patch) | |
| tree | 0cb065679f3af558dddcb8b2a00bf92aa194437a /Library | |
| parent | c20f6395bbadef014f78e774e1526fecf2c12bfc (diff) | |
| download | brew-b0bf181788f4c0b0b5a9835133c3126e5011ec6c.tar.bz2 | |
install: search when formula isn't found.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/install.rb | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index e6772a105..c6ae22294 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -26,12 +26,19 @@ module Homebrew extend self end unless ARGV.force? perform_preinstall_checks - ARGV.formulae.each do |f| - begin - install_formula(f) - rescue CannotInstallFormulaError => e - ofail e.message + begin + ARGV.formulae.each do |f| + begin + install_formula(f) + rescue CannotInstallFormulaError => e + ofail e.message + end end + rescue FormulaUnavailableError => e + ofail e.message + require 'cmd/search' + puts 'Searching taps...' + puts_columns(search_taps(query_regexp(e.name))) end end |
