aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2016-08-08 09:25:34 +0100
committerMike McQuaid2016-08-08 10:55:12 +0100
commit850db4ebf473738ffba8424065d62954d3c95dd1 (patch)
treeb177639dee79a0b6f0939942bddda2fba7319ac4
parent9d8c4e6279ae50b1e476ca3e2fb1f6469a3e71a5 (diff)
downloadbrew-850db4ebf473738ffba8424065d62954d3c95dd1.tar.bz2
search: fix repositories with formulae and casks.
e.g. Caskroom/homebrew-cask. Thanks to UniqMartin for the fix. Fixes #655.
-rw-r--r--Library/Homebrew/cmd/search.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb
index 9574ba7d6..d84bed227 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