aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2017-04-17 15:48:52 +0100
committerGitHub2017-04-17 15:48:52 +0100
commit226c24aea01a5d7b42d33671222f94d6eb4d5df1 (patch)
tree4eff529eda5a987ef595612da24a8a7d15bf9e6f /Library
parentd950573f798d8a12545e78d2800b4b07a5c4c097 (diff)
parent3b14aa2e90b63e6a694b985653268a1643fb6f14 (diff)
downloadbrew-226c24aea01a5d7b42d33671222f94d6eb4d5df1.tar.bz2
Merge pull request #2498 from zmwangx/do-not-search-taps-for-missing-qualified-formula
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..fd7aede86 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.include?("/")
ohai "Searching taps..."
taps_search_results = search_taps(query)
case taps_search_results.length