aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMax Howell2012-03-02 01:21:55 +0000
committerMax Howell2012-03-02 01:21:55 +0000
commitdda2034ee57f399d92e542f6b4da5f1c4beca315 (patch)
tree9e1db0525aa42193bd70b74318452644915fe7e4 /Library/Homebrew
parent36a493ac8f3c3870de4d76878cce53f75548196c (diff)
downloadhomebrew-dda2034ee57f399d92e542f6b4da5f1c4beca315.tar.bz2
Clearer brew doctor output for brew missing
It was confusing that it told you to brew install missing deps and then listed formula that were already installed IMO.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/doctor.rb15
1 files changed, 11 insertions, 4 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb
index 38515c505..f1d918174 100644
--- a/Library/Homebrew/cmd/doctor.rb
+++ b/Library/Homebrew/cmd/doctor.rb
@@ -715,11 +715,18 @@ def check_tmpdir
end
def check_missing_deps
- s = `brew missing`.strip
+ s = []
+ `brew missing`.each_line do |line|
+ line =~ /(.*): (.*)/
+ s << $2
+ end
if s.length > 0 then <<-EOS.undent
- You have missing dependencies for install formula
- You should `brew install` these missing dependencies:
- #{s}
+ Some installed formula are missing dependencies.
+ You should `brew install` the missing dependencies:
+
+ brew install #{s * " "}
+
+ Run `brew missing` for more details.
EOS
end
end