Merge pull request #11832 from AkihiroSuda/arch-allowlist

This commit is contained in:
Carlo Cabrera 2021-08-11 19:19:34 +08:00 committed by GitHub
commit 2d2aff3250
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -338,9 +338,12 @@ module FormulaCellarChecks
end
return if mismatches.empty? && universal_binaries_expected
mismatches_expected = formula.tap.blank? || tap_audit_exception(:mismatched_binary_allowlist, formula.name)
return if compatible_universal_binaries.empty? && mismatches_expected
s = ""
if mismatches.present?
if mismatches.present? && !mismatches_expected
s += <<~EOS
Binaries built for a non-native architecture were installed into #{formula}'s prefix.
The offending files are: