From 0aca152f23c7c14590e6d167e4c3ad5494996498 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Wed, 31 Aug 2011 15:36:29 +0100 Subject: [PATCH] Check for missing deps as part of `brew doctor` --- Library/Homebrew/cmd/doctor.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 5bf8d03aa4..1fd78701c2 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