From 05fa1f0cb85e2fd93a1eaec9662ca674fae91617 Mon Sep 17 00:00:00 2001 From: Rylan Polster Date: Fri, 20 Aug 2021 02:35:17 -0400 Subject: [PATCH] tap_auditor: use short names when checking exception lists --- Library/Homebrew/tap_auditor.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/tap_auditor.rb b/Library/Homebrew/tap_auditor.rb index 574dae149a..d946a12e27 100644 --- a/Library/Homebrew/tap_auditor.rb +++ b/Library/Homebrew/tap_auditor.rb @@ -15,12 +15,15 @@ module Homebrew def initialize(tap, strict:) @name = tap.name @path = tap.path - @formula_names = tap.formula_names @cask_tokens = tap.cask_tokens @tap_audit_exceptions = tap.audit_exceptions @tap_style_exceptions = tap.style_exceptions @tap_pypi_formula_mappings = tap.pypi_formula_mappings @problems = [] + + @formula_names = tap.formula_names.map do |formula_name| + formula_name.split("/").last + end end sig { void }