formula_installer: need up to date req formulae.
This makes them behave consistently to other dependencies. Otherwise other checks for them being `installed?` will fail. Fixes #2333 Closes #2302 Fixes https://github.com/Homebrew/homebrew-science/issues/5247
This commit is contained in:
		
							parent
							
								
									7685618a1c
								
							
						
					
					
						commit
						60f96df44d
					
				@ -410,10 +410,13 @@ class FormulaInstaller
 | 
				
			|||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def install_requirement_formula?(req, dependent, build)
 | 
					  def install_requirement_formula?(req, dependent, build)
 | 
				
			||||||
    return false unless req.to_dependency
 | 
					    req_dependency = req.to_dependency
 | 
				
			||||||
 | 
					    return false unless req_dependency
 | 
				
			||||||
    return true unless req.satisfied?
 | 
					    return true unless req.satisfied?
 | 
				
			||||||
    return false if req.run?
 | 
					    return false if req.run?
 | 
				
			||||||
    install_bottle_for?(dependent, build) || build_bottle?
 | 
					    return true if build_bottle?
 | 
				
			||||||
 | 
					    return true unless req_dependency.installed?
 | 
				
			||||||
 | 
					    install_bottle_for?(dependent, build)
 | 
				
			||||||
  end
 | 
					  end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  def expand_requirements
 | 
					  def expand_requirements
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user