aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions/examples/brew-server
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Contributions/examples/brew-server')
-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>