aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-04-10 21:13:05 -0700
committerAdam Vandenberg2011-04-10 21:13:05 -0700
commitb14be381c67a874f04e86ffe1539503f8acdf018 (patch)
tree71e9887cd4e74e32338f218bfb9cd8824ccbd173 /Library
parentaff8ce3ba899918917b8ae933cf6e1d0a71f6c89 (diff)
downloadhomebrew-b14be381c67a874f04e86ffe1539503f8acdf018.tar.bz2
Make brew deps Leopard compatible
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/deps.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/deps.rb b/Library/Homebrew/cmd/deps.rb
index f5dd675c8..df486f988 100644
--- a/Library/Homebrew/cmd/deps.rb
+++ b/Library/Homebrew/cmd/deps.rb
@@ -8,8 +8,7 @@ module Homebrew extend self
puts "#{f.name}:#{f.deps*' '}"
end
else
- func = if ARGV.one? then :deps else :recursive_deps end
- puts ARGV.formulae.map(&func).intersection.sort
+ puts ARGV.formulae.map{ |f| ARGV.one? ? f.deps : f.recursive_deps }.intersection.sort
end
end
end