diff options
| author | Adam Vandenberg | 2010-03-31 14:59:50 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-04-06 08:22:28 -0700 |
| commit | 25ba35c1624c819426d1557e299ba0dfd516e5a1 (patch) | |
| tree | 863427ba66518239448e7dd024d41dc8b3f136e0 /Library | |
| parent | 01e13d48d7d99f63c1d3405fd8b2f240dd00911c (diff) | |
| download | homebrew-25ba35c1624c819426d1557e299ba0dfd516e5a1.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 |
