15 lines
		
	
	
		
			333 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			333 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # frozen_string_literal: true
 | |
| 
 | |
| module Homebrew
 | |
|   module Fetch
 | |
|     def fetch_bottle?(f)
 | |
|       return true if args.force_bottle? && f.bottle
 | |
|       return false unless f.bottle && f.pour_bottle?
 | |
|       return false if args.build_formula_from_source?(f)
 | |
|       return false unless f.bottle.compatible_cellar?
 | |
| 
 | |
|       true
 | |
|     end
 | |
|   end
 | |
| end
 | 
