formula_installer: don't output caveats for dependencies.
If a formula is installed as a dependency (or not on request) then don't output its caveats. Inspired by conversation in https://github.com/Homebrew/brew/pull/11367. Closes https://github.com/Homebrew/brew/pull/11367
This commit is contained in:
		
							parent
							
								
									ec2271cea7
								
							
						
					
					
						commit
						6764329684
					
				@ -760,6 +760,8 @@ class FormulaInstaller
 | 
			
		||||
 | 
			
		||||
    audit_installed if Homebrew::EnvConfig.developer?
 | 
			
		||||
 | 
			
		||||
    return if !installed_on_request? || installed_as_dependency?
 | 
			
		||||
 | 
			
		||||
    caveats = Caveats.new(formula)
 | 
			
		||||
 | 
			
		||||
    return if caveats.empty?
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user