diff options
| author | Mike McQuaid | 2016-01-09 11:07:07 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2016-02-18 10:21:20 +0000 |
| commit | e62dc1325285c7e60d72e35692ed6f3833a3f6fb (patch) | |
| tree | 54eec776f3508e908716f49d27cc33bb9bb91a39 | |
| parent | 26ec9f9ea08978d15e329c3cb4d1df738be466e0 (diff) | |
| download | brew-e62dc1325285c7e60d72e35692ed6f3833a3f6fb.tar.bz2 | |
formula_installer: cleanup existing pour_bottle logic.
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index a46554caa..e65628376 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -78,13 +78,14 @@ class FormulaInstaller return false if @pour_failed bottle = formula.bottle - return true if force_bottle? && bottle + return false unless bottle + return true if force_bottle? return false if build_from_source? || build_bottle? || interactive? return false if ARGV.cc return false unless options.empty? return false if formula.bottle_disabled? return true if formula.local_bottle_path - return false unless bottle && formula.pour_bottle? + return false unless formula.pour_bottle? unless bottle.compatible_cellar? if install_bottle_options[:warn] |
