install: search when formula isn't found.
This commit is contained in:
parent
c20f6395bb
commit
b0bf181788
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user