diff options
| author | Adam Vandenberg | 2010-03-31 14:59:50 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-04-06 08:22:28 -0700 |
| commit | 71f9d74adf93dc8294c345f13036a1bb817ba06a (patch) | |
| tree | ede7aa654a22f694377247419bd9735ed5fc70bb /Library | |
| parent | b23ae3688c20677dca5636897ebdbe8396aca25f (diff) | |
| download | brew-71f9d74adf93dc8294c345f13036a1bb817ba06a.tar.bz2 | |
Move X11 check.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/brew_doctor.rb | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb index 8a0b50a7c..edba244eb 100644 --- a/Library/Homebrew/brew_doctor.rb +++ b/Library/Homebrew/brew_doctor.rb @@ -9,6 +9,13 @@ def check_for_stray_dylibs end end +def check_for_x11 + unless File.exists? '/usr/X11/lib/libpng.dylib' + puts "You don't have X11 installed as part of your Xcode installation." + puts "This isn't required for all formula. But it is expected by some." + end +end + def brew_doctor read, write = IO.pipe @@ -33,10 +40,7 @@ def brew_doctor puts end - unless File.exists? '/usr/X11/lib/libpng.dylib' - puts "You don't have X11 installed as part of your Xcode installation." - puts "This isn't required for all formula. But it is expected by some." - end + check_for_x11 exit! 0 else |
