Check for missing deps as part of brew doctor

This commit is contained in:
Max Howell 2011-08-31 15:36:29 +01:00
parent b5c709e2ed
commit 0aca152f23

View File

@ -718,6 +718,14 @@ def check_tmpdir
end end
end end
def check_missing_deps
s = `brew missing`.strip
if s.length > 0
ohai "You should brew install these missing dependencies:"
puts s
end
end
module Homebrew extend self module Homebrew extend self
def doctor def doctor
old_stdout = $stdout old_stdout = $stdout
@ -758,6 +766,7 @@ module Homebrew extend self
check_for_linked_kegonly_brews check_for_linked_kegonly_brews
check_for_other_frameworks check_for_other_frameworks
check_tmpdir check_tmpdir
check_missing_deps
ensure ensure
$stdout = old_stdout $stdout = old_stdout
end end