diff --git a/Library/Homebrew/extend/os/mac/diagnostic.rb b/Library/Homebrew/extend/os/mac/diagnostic.rb index c4669c9baa..8a426de6fe 100644 --- a/Library/Homebrew/extend/os/mac/diagnostic.rb +++ b/Library/Homebrew/extend/os/mac/diagnostic.rb @@ -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?