From 850db4ebf473738ffba8424065d62954d3c95dd1 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 8 Aug 2016 09:25:34 +0100 Subject: [PATCH] search: fix repositories with formulae and casks. e.g. Caskroom/homebrew-cask. Thanks to UniqMartin for the fix. Fixes #655. --- Library/Homebrew/cmd/search.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb index 9574ba7d6f..d84bed2272 100644 --- a/Library/Homebrew/cmd/search.rb +++ b/Library/Homebrew/cmd/search.rb @@ -143,7 +143,8 @@ module Homebrew end end - paths = tree["Formula"] || tree["HomebrewFormula"] || tree["Casks"] || tree["."] || [] + paths = tree["Formula"] || tree["HomebrewFormula"] || tree["."] || [] + paths += tree["Casks"] || [] cache[key] = paths.map { |path| File.basename(path, ".rb") } end