doctor: reorganize check_for_macgpg2
This commit is contained in:
parent
187b9c9d59
commit
8b98e83347
@ -82,15 +82,20 @@ end
|
|||||||
# Installing MacGPG2 interferes with Homebrew in a big way
|
# Installing MacGPG2 interferes with Homebrew in a big way
|
||||||
# http://sourceforge.net/projects/macgpg2/files/
|
# http://sourceforge.net/projects/macgpg2/files/
|
||||||
def check_for_macgpg2
|
def check_for_macgpg2
|
||||||
if %w{/Applications/start-gpg-agent.app
|
return if File.exist? '/usr/local/MacGPG2/share/gnupg/VERSION'
|
||||||
/Library/Receipts/libiconv1.pkg
|
|
||||||
/usr/local/MacGPG2}.any? { |f| File.exist? f }
|
suspects = %w{
|
||||||
<<-EOS.undent
|
/Applications/start-gpg-agent.app
|
||||||
|
/Library/Receipts/libiconv1.pkg
|
||||||
|
/usr/local/MacGPG2
|
||||||
|
}
|
||||||
|
|
||||||
|
if suspects.any? { |f| File.exist? f } then <<-EOS.undent
|
||||||
You may have installed MacGPG2 via the package installer.
|
You may have installed MacGPG2 via the package installer.
|
||||||
Several other checks in this script will turn up problems, such as stray
|
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/.
|
dylibs in /usr/local and permissions issues with share and man in /usr/local/.
|
||||||
EOS
|
EOS
|
||||||
end unless File.exist? '/usr/local/MacGPG2/share/gnupg/VERSION'
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def __check_stray_files(pattern, white_list, message)
|
def __check_stray_files(pattern, white_list, message)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user