Module: Homebrew::Fetch Private

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

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#fetch_bottle?(f, args:) ⇒ Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns:

  • (Boolean)

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

def fetch_bottle?(f, args:)
  return true if args.force_bottle? && f.bottle
  return false unless f.bottle && f.pour_bottle?
  return false if args.build_from_source_formulae.include?(f.full_name)
  return false unless f.bottle.compatible_cellar?

  true
end