aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMike McQuaid2013-10-30 12:33:20 -0700
committerMike McQuaid2013-10-31 17:20:00 -0700
commit93bc71b247ecd5ccab4b52fd7b8b10e04051a6a9 (patch)
tree2c27be4d8a2d15c4fcf3bc6393c44fd7d09dae21 /Library/Homebrew/cmd
parentc26be4307669987501ff023b063925a9b23c04f0 (diff)
downloadhomebrew-93bc71b247ecd5ccab4b52fd7b8b10e04051a6a9.tar.bz2
install: search when formula isn't found.
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/install.rb17
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