Merge pull request #5614 from MikeMcQuaid/bitdefender

os/mac/diagnostic: detect Bitdefender.
This commit is contained in:
Mike McQuaid 2019-01-26 08:43:09 +00:00 committed by GitHub
commit ea1cf52d47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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?