aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorAdam Vandenberg2011-04-13 13:10:25 -0700
committerAdam Vandenberg2011-04-13 13:48:31 -0700
commitbfd75db8036a0d56c07204fa5fa9fe93cf2d5370 (patch)
tree8a6637b7e3c57fb63ddef7643547a638169632af /Library/Homebrew
parent8bb40e30e959fb565f85490a95ad0e2d8f371945 (diff)
downloadbrew-bfd75db8036a0d56c07204fa5fa9fe93cf2d5370.tar.bz2
brew deps: add hidden option -n
-n means 'natural order' instead of alpha-order, and will show the order in which the deps will be installed.
Diffstat (limited to 'Library/Homebrew')
-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 df486f988..dfacbd1be 100644
--- a/Library/Homebrew/cmd/deps.rb
+++ b/Library/Homebrew/cmd/deps.rb
@@ -8,7 +8,9 @@ module Homebrew extend self
puts "#{f.name}:#{f.deps*' '}"
end
else
- puts ARGV.formulae.map{ |f| ARGV.one? ? f.deps : f.recursive_deps }.intersection.sort
+ all_deps = ARGV.formulae.map{ |f| ARGV.one? ? f.deps : f.recursive_deps }.intersection
+ all_deps.sort! unless ARGV.include? "-n"
+ puts all_deps
end
end
end