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:
parent
0731a68cde
commit
8d2794212f
@ -107,7 +107,7 @@ module Homebrew
|
|||||||
dirname, filename = File.split(match["path"])
|
dirname, filename = File.split(match["path"])
|
||||||
next unless valid_dirnames.include?(dirname)
|
next unless valid_dirnames.include?(dirname)
|
||||||
tap = Tap.fetch(match["repository"]["full_name"])
|
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")}"
|
"#{tap.name}/#{File.basename(filename, ".rb")}"
|
||||||
end.compact
|
end.compact
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user