aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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