Skip to content
Snippets Groups Projects
Commit b0bf1817 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

install: search when formula isn't found.

parent c20f6395
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment