aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJim Witschey2014-10-27 14:31:39 -0400
committerMike McQuaid2014-10-28 11:16:24 +0000
commit2c005c91c9fa72d09b8991ed3f1998523cb7ebad (patch)
tree080119defbbd1d35be399eddb3a40a0f66e17c2e /Library
parente7edce995f287076579354712a0a3dfc9d88571c (diff)
downloadhomebrew-2c005c91c9fa72d09b8991ed3f1998523cb7ebad.tar.bz2
cmd/install: fallback to searching formula names.
Closes #33648. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/install.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index 89eec50fb..16efadff4 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -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