audit: fix keg_only check

This commit is contained in:
Jonathan Chang 2020-04-13 14:19:58 +10:00
parent 9e4dfaf726
commit e6e5571a07

View File

@ -403,6 +403,7 @@ module Homebrew
end
if @new_formula &&
dep_f.keg_only? &&
dep_f.keg_only_reason.provided_by_macos? &&
dep_f.keg_only_reason.applicable? &&
!USES_FROM_MACOS_WHITELIST.include?(dep.name)