Merge pull request #20571 from Homebrew/formula_cellar_checks-avoid-changing-name

formula_cellar_checks: avoid changing name
This commit is contained in:
Carlo Cabrera 2025-08-25 16:24:58 +00:00 committed by GitHub
commit 8b2209bc26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -373,7 +373,7 @@ module FormulaCellarChecks
universal_binaries_expected = if (formula_tap = formula.tap).present? && formula_tap.core_tap?
formula_name = formula.name
# Apply audit exception to versioned formulae too from the unversioned name.
formula_name.gsub!(/@\d+(\.\d+)*$/, "") if formula.versioned_formula?
formula_name = formula_name.gsub(/@\d+(\.\d+)*$/, "") if formula.versioned_formula?
formula_tap.audit_exception(:universal_binary_allowlist, formula_name)
else
true