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 Homebrew/homebrew#18540
This commit is contained in:
Mike McQuaid 2013-04-01 20:23:24 +01:00
parent 6a58650611
commit 1263b429df

View File

@ -24,8 +24,8 @@ class FormulaInstaller
check_install_sanity check_install_sanity
end end
def pour_bottle? def pour_bottle? warn=false
(tab.used_options.empty? rescue true) && options.empty? && install_bottle?(f) (tab.used_options.empty? rescue true) && options.empty? && install_bottle?(f, warn)
end end
def check_install_sanity def check_install_sanity
@ -94,7 +94,7 @@ class FormulaInstaller
poured_bottle = false poured_bottle = false
begin begin
if pour_bottle? if pour_bottle? true
pour pour
@poured_bottle = true @poured_bottle = true
tab = Tab.for_keg f.prefix tab = Tab.for_keg f.prefix