audit: check for missing xz build-time dep
Closes Homebrew/homebrew#17565.
This commit is contained in:
		
							parent
							
								
									66d91ac0e4
								
							
						
					
					
						commit
						3c7837e5a9
					
				@ -222,6 +222,10 @@ class FormulaAuditor
 | 
			
		||||
    if urls.any? { |p| p =~ %r[^git://github\.com/] }
 | 
			
		||||
      problem "Use https:// URLs for accessing GitHub repositories."
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    if urls.any? { |u| u =~ /\.xz/ } && !f.deps.any? { |d| d.name == "xz" }
 | 
			
		||||
      problem "Missing a build-time dependency on 'xz'"
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def audit_specs
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user