Module: Homebrew::Fetch Private

Extended by:
T::Sig
Included in:
Homebrew
Defined in:
fetch.rb

This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.

Instance Method Summary collapse

Instance Method Details

#fetch_bottle?(f, args:) ⇒ Boolean

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

Returns:

  • (Boolean)


10
11
12
13
14
15
16
17
18
19
# File 'fetch.rb', line 10

def fetch_bottle?(f, args:)
  bottle = f.bottle

  return true if args.force_bottle? && bottle.present?

  bottle.present? &&
    f.pour_bottle? &&
    args.build_from_source_formulae.exclude?(f.full_name) &&
    bottle.compatible_locations?
end