mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00

This reverts commit 64fd839c955b3c32855067d26fed7daf65183877, reversing changes made to 6f50801b37b7d829afc37da76d2ef0a1ac1c9f5f.
17 lines
363 B
Ruby
17 lines
363 B
Ruby
# frozen_string_literal: true
|
|
|
|
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 Homebrew.args.build_formula_from_source?(f)
|
|
return false unless f.bottle.compatible_cellar?
|
|
|
|
true
|
|
end
|
|
end
|
|
end
|