aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorMike McQuaid2016-01-09 11:07:07 +0000
committerMike McQuaid2016-02-18 10:21:20 +0000
commite62dc1325285c7e60d72e35692ed6f3833a3f6fb (patch)
tree54eec776f3508e908716f49d27cc33bb9bb91a39 /Library/Homebrew
parent26ec9f9ea08978d15e329c3cb4d1df738be466e0 (diff)
downloadbrew-e62dc1325285c7e60d72e35692ed6f3833a3f6fb.tar.bz2
formula_installer: cleanup existing pour_bottle logic.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formula_installer.rb5
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]