diff options
| author | Adam Vandenberg | 2010-08-18 09:09:38 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-18 09:09:38 -0700 |
| commit | 115ffb226d020d291653ec0b96699a2dca8e301c (patch) | |
| tree | 4a2ef59048b55dcad6db3dd5e5035898dcd67794 | |
| parent | 1bf407dd357e9eaa85e1a2260e591cb29f5dfb7a (diff) | |
| download | brew-115ffb226d020d291653ec0b96699a2dca8e301c.tar.bz2 | |
brew doctor - look for MacGPG2 installed via the .mpkg
| -rw-r--r-- | Library/Homebrew/brew_doctor.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Homebrew/brew_doctor.rb b/Library/Homebrew/brew_doctor.rb index 689e19ba4..a8791f453 100644 --- a/Library/Homebrew/brew_doctor.rb +++ b/Library/Homebrew/brew_doctor.rb @@ -28,6 +28,18 @@ def is_prefix? prefix, longer_string longer_string.to_s[0,p.length] == p end +# Installing MacGPG2 interferes with Homebrew in a big way +# http://sourceforge.net/projects/macgpg2/files/ +def check_for_macgpg2 + if File.exist? "/Applications/start-gpg-agent.app" + puts <<-EOS.undent + If you have installed MacGPG2 via the package installer, several other + checks in this script will turn up problems, such as stray .dylibs in + /usr/local and permissions issues with share and man in /usr/local/. + + EOS + end +end def check_for_stray_dylibs unbrewed_dylibs = Dir['/usr/local/lib/*.dylib'].select { |f| File.file? f and not File.symlink? f } @@ -522,6 +534,7 @@ def brew_doctor check_usr_bin_ruby check_homebrew_prefix + check_for_macgpg2 check_for_stray_dylibs check_gcc_versions check_cc_symlink |
