Merge pull request #4349 from apjanke/audit-head-only-error
brew audit: avoid error on head-only formulae
This commit is contained in:
		
						commit
						60e6b5114b
					
				@ -584,6 +584,7 @@ module Homebrew
 | 
			
		||||
      ]
 | 
			
		||||
 | 
			
		||||
      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?
 | 
			
		||||
          problem "should only be updated every #{b} releases on multiples of #{b}"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user