os/mac/diagnostic: detect Bitdefender.

This has caused us multiple hard-to-diagnose issues so let's complain
about it in `brew doctor`.
This commit is contained in:
Mike McQuaid 2019-01-25 20:15:53 +00:00
parent 2cc50864cc
commit ce9856efca
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -297,6 +297,19 @@ module Homebrew
end
end
def check_for_bitdefender
if !Pathname("/Library/Bitdefender/AVP/EndpointSecurityforMac.app").exist? &&
!Pathname("/Library/Bitdefender/AVP/BDLDaemon").exist?
return
end
<<~EOS
You have installed Bitdefender. The "Traffic Scan" option interferes with
Homebrew's ability to download packages. See:
https://github.com/Homebrew/brew/issues/5558
EOS
end
def check_for_multiple_volumes
return unless HOMEBREW_CELLAR.exist?