2019-04-19 15:38:03 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-06-05 23:19:18 -04:00
|
|
|
module Homebrew
|
|
|
|
module Fetch
|
|
|
|
module_function
|
|
|
|
|
|
|
|
def fetch_bottle?(f)
|
|
|
|
return true if ARGV.force_bottle? && f.bottle
|
|
|
|
return false unless f.bottle && f.pour_bottle?
|
2020-04-11 18:50:24 +05:30
|
|
|
return false if Homebrew.args.build_formula_from_source?(f)
|
2018-06-05 23:19:18 -04:00
|
|
|
return false unless f.bottle.compatible_cellar?
|
2018-09-17 02:45:00 +02:00
|
|
|
|
2018-06-05 23:19:18 -04:00
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|