aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorZhiming Wang2017-04-15 19:54:05 -0400
committerZhiming Wang2017-04-15 20:27:33 -0400
commit363b26801a841faf7590f13a10cdd111bb0f4192 (patch)
treeee9489ab8aa7b2c1fef46d684a314fd3621367bb /Library
parent02f0189335907805d422c817462674081f48ab60 (diff)
downloadbrew-363b26801a841faf7590f13a10cdd111bb0f4192.tar.bz2
install: do not search taps when a qualified formula is missing
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/install.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb
index 1808c4d9c..2b54844fc 100644
--- a/Library/Homebrew/cmd/install.rb
+++ b/Library/Homebrew/cmd/install.rb
@@ -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