pour_bottle?: Pour local bottles without sha256

Pouring a local bottle for a formula without a bottle sha256
in the formula for that OS would unexpectedly install from
source instead.
This commit is contained in:
Shaun Jackman 2017-08-29 11:48:47 -07:00
parent 008eaac60d
commit 4cfd333c5a

View File

@ -85,7 +85,7 @@ class FormulaInstaller
return false if @pour_failed
bottle = formula.bottle
return false unless bottle
return false if !bottle && !formula.local_bottle_path
return true if force_bottle?
return false if build_from_source? || build_bottle? || interactive?
return false if ARGV.cc