From 8d2794212fae130a2e2013f6b0dd8c512b9eeec1 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 2 Jun 2017 22:19:04 +0100 Subject: [PATCH] =?UTF-8?q?search:=20don=E2=80=99t=20exclude=20Caskroom=20?= =?UTF-8?q?results=20even=20if=20tapped.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As they are not shown in the normal `brew search` output. --- Library/Homebrew/cmd/search.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb index f71a14ba10..ca50e8127a 100644 --- a/Library/Homebrew/cmd/search.rb +++ b/Library/Homebrew/cmd/search.rb @@ -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