aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJonathan Hitchcock2012-03-06 17:03:39 +0200
committerMax Howell2012-03-06 15:38:33 +0000
commitde30a7844f6bf08c040ec81500e9d6d73409e3d6 (patch)
treeec1c887f2b2d7130985bda4791cde08f30fa332d /Library/Homebrew
parentcc78050dc5607ac827429fe27686f71a7e77716c (diff)
downloadbrew-de30a7844f6bf08c040ec81500e9d6d73409e3d6.tar.bz2
'brew doctor' provides bad example command
If there are multiple dependencies missing, 'brew doctor' can suggest that you run something like: brew install autoconf libyaml autoconf, libyaml This commit improves that output. Closes Homebrew/homebrew#10720. Signed-off-by: Max Howell <max@methylblue.com>
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/doctor.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index d87b86ec6..ad24bb958 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -718,7 +718,9 @@ def check_missing_deps
s = []
`brew missing`.each_line do |line|
line =~ /(.*): (.*)/
- s << $2 unless s.include? $2
+ $2.split.each do |dep|
+ s << dep unless s.include? dep
+ end
end
if s.length > 0 then <<-EOS.undent
Some installed formula are missing dependencies.