From b014824a38da1f0775ab8ff98ea33cf5684fbdb0 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 1 Apr 2013 20:23:24 +0100 Subject: formula_installer: warn on bottles being skipped. We want to notify users that non-/usr/local installs may result in some bottles being not used. References #18540 --- Library/Homebrew/formula_installer.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index ab5285b84..ace3b59fa 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -24,8 +24,8 @@ class FormulaInstaller check_install_sanity end - def pour_bottle? - (tab.used_options.empty? rescue true) && options.empty? && install_bottle?(f) + def pour_bottle? warn=false + (tab.used_options.empty? rescue true) && options.empty? && install_bottle?(f, warn) end def check_install_sanity @@ -94,7 +94,7 @@ class FormulaInstaller poured_bottle = false begin - if pour_bottle? + if pour_bottle? true pour @poured_bottle = true tab = Tab.for_keg f.prefix -- cgit v1.2.3