Reduce the number of things that trigger ARGV.build_from_source?
The newly generalized bottle implementation removes the need to defensively check for --devel, --HEAD, and others in this method.
This commit is contained in:
		
							parent
							
								
									7da459874f
								
							
						
					
					
						commit
						9bc8d0820e
					
				@ -143,8 +143,7 @@ module HomebrewArgvExtension
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def build_from_source?
 | 
			
		||||
    include? '--build-from-source' or !ENV['HOMEBREW_BUILD_FROM_SOURCE'].nil? \
 | 
			
		||||
      or build_head? or build_devel? or build_universal?
 | 
			
		||||
    include? '--build-from-source' or !ENV['HOMEBREW_BUILD_FROM_SOURCE'].nil?
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def flag? flag
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user