Merge pull request #3250 from sjackman/pour-bottle
pour_bottle?: Check bottle.compatible_cellar?
This commit is contained in:
commit
d62d496e36
@ -100,11 +100,12 @@ class FormulaInstaller
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
unless formula.bottled?
|
bottle = formula.bottle_specification
|
||||||
|
unless bottle.compatible_cellar?
|
||||||
if install_bottle_options[:warn]
|
if install_bottle_options[:warn]
|
||||||
opoo <<-EOS.undent
|
opoo <<-EOS.undent
|
||||||
Building #{formula.full_name} from source:
|
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
|
EOS
|
||||||
end
|
end
|
||||||
return false
|
return false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user