From c0e8569c93067c5e97acdc86399ac1d320b5366c Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Thu, 21 Oct 2021 21:22:18 -0400 Subject: [PATCH] Fix `mismatch_binary_allowlist` check --- Library/Homebrew/formula_cellar_checks.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_cellar_checks.rb b/Library/Homebrew/formula_cellar_checks.rb index 606d4a89eb..b55ef9b7b2 100644 --- a/Library/Homebrew/formula_cellar_checks.rb +++ b/Library/Homebrew/formula_cellar_checks.rb @@ -338,7 +338,8 @@ module FormulaCellarChecks end return if mismatches.empty? && universal_binaries_expected - mismatches_expected = formula.tap&.audit_exception(:mismatched_binary_allowlist, formula.name) || true + mismatches_expected = formula.tap.blank? || + formula.tap.audit_exception(:mismatched_binary_allowlist, formula.name) return if compatible_universal_binaries.empty? && mismatches_expected return if universal_binaries_expected && mismatches_expected