brew/Library/Homebrew/fetch.rb

16 lines
376 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Homebrew
2020-08-17 04:53:36 +02:00
# @api private
module Fetch
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?
2018-09-17 02:45:00 +02:00
true
end
end
end