aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorShaun Jackman2017-08-29 11:48:47 -0700
committerShaun Jackman2017-08-30 10:17:36 -0700
commit4cfd333c5a9fd32f1d9870b3e4987c7dad76a88a (patch)
tree5212bf857b52872605a095ec42324f6642ec3fcf /Library
parent008eaac60da0bfaba4e54fb0febeb172b7976898 (diff)
downloadbrew-4cfd333c5a9fd32f1d9870b3e4987c7dad76a88a.tar.bz2
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.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 5aa06e9f0..216a375ce 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -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