Module: Homebrew::Fetch

Defined in:
brew/Library/Homebrew/fetch.rb

Class Method Summary collapse

Class Method Details

.fetch_bottle?(f) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
10
11
12
13
14
# File 'brew/Library/Homebrew/fetch.rb', line 7

def fetch_bottle?(f)
  return true if ARGV.force_bottle? && f.bottle
  return false unless f.bottle && f.pour_bottle?
  return false if ARGV.build_formula_from_source?(f)
  return false unless f.bottle.compatible_cellar?

  true
end