aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-03-18 01:51:36 +0000
committerMax Howell2012-03-18 01:51:36 +0000
commitaeb9440b90be70e80de78f547d48f7b70bd364d0 (patch)
treea504711e816a0c591fb614d7e3ba0173e4ddca21 /Library
parent3bfea440cbfa3d4e316da9485e0331ef490543d6 (diff)
downloadbrew-aeb9440b90be70e80de78f547d48f7b70bd364d0.tar.bz2
Special case "Homebrew" in brew-search
Again, "Homebrew" is changed to "homebrew" before rendering to the user.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/search.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb
index 278d8150b..fb68020d4 100644
--- a/Library/Homebrew/cmd/search.rb
+++ b/Library/Homebrew/cmd/search.rb
@@ -49,6 +49,7 @@ module Homebrew extend self
results = []
open "http://github.com/api/v2/yaml/blob/all/#{user}/homebrew-#{repo}/master" do |f|
+ user.downcase! if user == "Homebrew" # special handling for the Homebrew organization
YAML::load(f.read)["blobs"].each do |file, _|
name = File.basename(file, '.rb')
if file =~ /\.rb$/ and name =~ rx