pour_bottle?: Check bottle.compatible_cellar?
formula.bottled? is false when the bottle has no sha256, as with a local bottle.
This commit is contained in:
parent
700300a76b
commit
a4838d22f4
@ -100,11 +100,12 @@ class FormulaInstaller
|
||||
return false
|
||||
end
|
||||
|
||||
unless formula.bottled?
|
||||
bottle = formula.bottle_specification
|
||||
unless bottle.compatible_cellar?
|
||||
if install_bottle_options[:warn]
|
||||
opoo <<-EOS.undent
|
||||
Building #{formula.full_name} from source:
|
||||
The bottle needs a #{formula.bottle_specification.cellar} Cellar (yours is #{HOMEBREW_CELLAR}).
|
||||
The bottle needs a #{bottle.cellar} Cellar (yours is #{HOMEBREW_CELLAR}).
|
||||
EOS
|
||||
end
|
||||
return false
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user