aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-06-22 12:54:46 -0500
committerJack Nagel2013-06-22 12:54:46 -0500
commit2b56c52696abc100f6f47786da0779c6a2546f46 (patch)
tree99f2c4313c69de3ade3a9c6a758458e6ae4aaa50
parentacf7595e03974b61fa122b091d50c59133129470 (diff)
downloadhomebrew-2b56c52696abc100f6f47786da0779c6a2546f46.tar.bz2
deps: allow "--installed --tree"
-rw-r--r--Library/Homebrew/cmd/deps.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/deps.rb b/Library/Homebrew/cmd/deps.rb
index 05cc4b777..bb0868360 100644
--- a/Library/Homebrew/cmd/deps.rb
+++ b/Library/Homebrew/cmd/deps.rb
@@ -10,7 +10,9 @@ module Homebrew extend self
:topo_order? => ARGV.include?('-n')
)
- if mode.installed?
+ if mode.installed? && mode.tree?
+ puts_deps_tree Formula.installed
+ elsif mode.installed?
puts_deps Formula.installed
elsif mode.all?
puts_deps Formula