From f2faf49e3f189885c6787f7d4beb680c3a987d4f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 9 Jan 2016 11:07:40 +0000 Subject: [PATCH] formula_installer: use new pour_bottle DSL. --- Library/Homebrew/formula_installer.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 5c66372614..5f66b93e7a 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -85,7 +85,15 @@ class FormulaInstaller return false unless options.empty? return false if formula.bottle_disabled? return true if formula.local_bottle_path - return false unless formula.pour_bottle? + unless formula.pour_bottle? + if install_bottle_options[:warn] && formula.pour_bottle_check_unsatisfied_reason + opoo <<-EOS.undent + Building #{formula.full_name} from source: + #{formula.pour_bottle_check_unsatisfied_reason} + EOS + end + return false + end unless bottle.compatible_cellar? if install_bottle_options[:warn]