install: search when formula isn't found.

This commit is contained in:
Mike McQuaid 2013-10-30 12:33:20 -07:00
parent c20f6395bb
commit b0bf181788

View File

@ -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