mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
14 lines
322 B
Ruby
14 lines
322 B
Ruby
![]() |
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?
|
||
|
return false if ARGV.build_formula_from_source?(f)
|
||
|
return false unless f.bottle.compatible_cellar?
|
||
|
true
|
||
|
end
|
||
|
end
|
||
|
end
|