aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/examples
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-15 19:47:46 -0700
committerAdam Vandenberg2010-08-15 19:47:46 -0700
commit6d36c4daf28b9d1730d368ccbe184cef99dc92ce (patch)
tree6607fc6bc594b63dc653d12d1b62582bbcf23468 /Library/Contributions/examples
parent74a081e08df276154ef6722c25da16b788f978cf (diff)
downloadbrew-6d36c4daf28b9d1730d368ccbe184cef99dc92ce.tar.bz2
Fix brew server and document.
Diffstat (limited to 'Library/Contributions/examples')
-rwxr-xr-xLibrary/Contributions/examples/brew-server2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Contributions/examples/brew-server b/Library/Contributions/examples/brew-server
index 15bd4dbb7..856baf241 100755
--- a/Library/Contributions/examples/brew-server
+++ b/Library/Contributions/examples/brew-server
@@ -144,7 +144,7 @@ get '/formula/:name' do
end
end
- used_by = Formula.get_used_by()[klass.name]
+ used_by = Formula.all.select{|ff| ff.deps.include?(klass.name)}.map{|f| f.name}.flatten.uniq.sort
unless used_by == nil
s << <<-HTML
<dt>Used by</td>