diff options
| author | Mike McQuaid | 2013-10-30 12:33:20 -0700 | 
|---|---|---|
| committer | Mike McQuaid | 2013-10-31 17:20:00 -0700 | 
| commit | 93bc71b247ecd5ccab4b52fd7b8b10e04051a6a9 (patch) | |
| tree | 2c27be4d8a2d15c4fcf3bc6393c44fd7d09dae21 /Library/Homebrew/cmd/install.rb | |
| parent | c26be4307669987501ff023b063925a9b23c04f0 (diff) | |
| download | homebrew-93bc71b247ecd5ccab4b52fd7b8b10e04051a6a9.tar.bz2 | |
install: search when formula isn't found.
Diffstat (limited to 'Library/Homebrew/cmd/install.rb')
| -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 | 
