From 4b97b618dfc0d6d913acb1e4f75631202be810b0 Mon Sep 17 00:00:00 2001 From: ilovezfs Date: Tue, 3 Jul 2018 01:14:12 -0700 Subject: [PATCH] audit: exact match throttled formula names --- Library/Homebrew/dev-cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index d918b48c5ac4f..56a7bb233ae4f 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -586,7 +586,7 @@ def audit_specs throttled.each_slice(2).to_a.map do |a, b| next if formula.stable.nil? version = formula.stable.version.to_s.split(".").last.to_i - if @strict && a.include?(formula.name) && version.modulo(b.to_i).nonzero? + if @strict && a == formula.name && version.modulo(b.to_i).nonzero? problem "should only be updated every #{b} releases on multiples of #{b}" end end