formula_installer: better priority for pour_bottle?

This commit is contained in:
Xu Cheng 2015-07-24 16:06:26 +08:00
parent 4625fd335c
commit 1845706187

View File

@ -61,10 +61,11 @@ class FormulaInstaller
return false if @pour_failed
bottle = formula.bottle
return true if (force_bottle? && bottle) || formula.local_bottle_path
return false if build_from_source? || build_bottle? || interactive? || formula.file_modified?
return true if force_bottle? && bottle
return false if build_from_source? || build_bottle? || interactive?
return false unless options.empty?
return true if formula.local_bottle_path
return false if formula.file_modified?
return false unless bottle && formula.pour_bottle?
unless bottle.compatible_cellar?