diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb index 0a291b5d9b..93437c346c 100644 --- a/Library/Homebrew/cmd/search.rb +++ b/Library/Homebrew/cmd/search.rb @@ -2,6 +2,7 @@ require 'formula' require 'blacklist' require 'utils' require 'thread' +require "official_taps" module Homebrew @@ -81,19 +82,7 @@ module Homebrew raise SEARCH_ERROR_QUEUE.pop unless SEARCH_ERROR_QUEUE.empty? end - SEARCHABLE_TAPS = [ - %w{Homebrew nginx}, - %w{Homebrew apache}, - %w{Homebrew versions}, - %w{Homebrew dupes}, - %w{Homebrew games}, - %w{Homebrew science}, - %w{Homebrew completions}, - %w{Homebrew binary}, - %w{Homebrew python}, - %w{Homebrew php}, - %w{Homebrew tex}, - %w{Homebrew x11}, + SEARCHABLE_TAPS = OFFICIAL_TAPS.map { |tap| ["Homebrew", tap] } + [ %w{Caskroom cask}, ] diff --git a/Library/Homebrew/official_taps.rb b/Library/Homebrew/official_taps.rb new file mode 100644 index 0000000000..1da0819d46 --- /dev/null +++ b/Library/Homebrew/official_taps.rb @@ -0,0 +1,17 @@ +OFFICIAL_TAPS = %w[ + apache + binary + completions + devel-only + dupes + fuse + games + head-only + nginx + php + python + science + tex + versions + x11 +]