diff options
| author | Max Howell | 2011-08-31 15:36:29 +0100 |
|---|---|---|
| committer | Max Howell | 2011-08-31 15:36:29 +0100 |
| commit | 0aca152f23c7c14590e6d167e4c3ad5494996498 (patch) | |
| tree | af4033adf22912b80640c66b5b720491460382bf /Library | |
| parent | b5c709e2edbde7bdb720a3b89cddf7887c903be8 (diff) | |
| download | brew-0aca152f23c7c14590e6d167e4c3ad5494996498.tar.bz2 | |
Check for missing deps as part of `brew doctor`
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 5bf8d03aa..1fd78701c 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -718,6 +718,14 @@ def check_tmpdir 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 def doctor old_stdout = $stdout @@ -758,6 +766,7 @@ module Homebrew extend self check_for_linked_kegonly_brews check_for_other_frameworks check_tmpdir + check_missing_deps ensure $stdout = old_stdout end |
