install: do not search taps when a qualified formula is missing

This commit is contained in:
Zhiming Wang 2017-04-15 19:54:05 -04:00
parent 02f0189335
commit 363b26801a
No known key found for this signature in database
GPG Key ID: 5B58F95EC95965D8

View File

@ -240,6 +240,8 @@ module Homebrew
puts "To install one of them, run (for example):\n brew install #{formulae_search_results.first}"
end
# Do not search taps if the formula name is qualified
return if e.name =~ %r{/}
ohai "Searching taps..."
taps_search_results = search_taps(query)
case taps_search_results.length