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.
This commit is contained in:
Max Howell 2012-03-02 01:21:55 +00:00
parent 9772e08033
commit bfa537d5fa

View File

@ -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