Merge pull request #2721 from MikeMcQuaid/search-no-exclude-caskroom

search: don’t exclude Caskroom results even if tapped.
This commit is contained in:
Markus Reiter 2017-06-03 00:16:29 +02:00 committed by GitHub
commit d596c95584

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