cmd/install: fallback to searching formula names.

Closes Homebrew/homebrew#33648.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Jim Witschey 2014-10-27 14:31:39 -04:00 committed by Mike McQuaid
parent 92e68049d1
commit a56ddb9eda

View File

@ -45,8 +45,11 @@ module Homebrew
ARGV.formulae.each { |f| install_formula(f) }
rescue FormulaUnavailableError => e
ofail e.message
query = query_regexp(e.name)
puts 'Searching formulae...'
puts_columns(search_formulae(query))
puts 'Searching taps...'
puts_columns(search_taps(query_regexp(e.name)))
puts_columns(search_taps(query))
end
end