search: don’t exclude Caskroom results even if tapped.

As they are not shown in the normal `brew search` output.
This commit is contained in:
Mike McQuaid 2017-06-02 22:19:04 +01:00
parent 0731a68cde
commit 8d2794212f

View File

@ -107,7 +107,7 @@ module Homebrew
dirname, filename = File.split(match["path"])
next unless valid_dirnames.include?(dirname)
tap = Tap.fetch(match["repository"]["full_name"])
next if tap.installed?
next if tap.installed? && match["repository"]["owner"]["login"] != "caskroom"
"#{tap.name}/#{File.basename(filename, ".rb")}"
end.compact
end