Merge pull request #7342 from jonchang/fix-audit

audit: fix keg_only check
This commit is contained in:
Jonathan Chang 2020-04-13 17:16:27 +10:00 committed by GitHub
commit a2e16294e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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