Merge pull request #4416 from ilovezfs/audit-fix-throttled
audit: exact match throttled formula names
This commit is contained in:
commit
517bf7ec4d
@ -586,7 +586,7 @@ module Homebrew
|
|||||||
throttled.each_slice(2).to_a.map do |a, b|
|
throttled.each_slice(2).to_a.map do |a, b|
|
||||||
next if formula.stable.nil?
|
next if formula.stable.nil?
|
||||||
version = formula.stable.version.to_s.split(".").last.to_i
|
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}"
|
problem "should only be updated every #{b} releases on multiples of #{b}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user