diff options
| author | Mike McQuaid | 2013-04-01 20:23:24 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-04-01 22:12:43 +0100 |
| commit | 1263b429dfa26cb3d3106ab3b7d00b5345b4d85a (patch) | |
| tree | 714a82cfcb9c669346d367f3812e6d6ac60101b7 /Library | |
| parent | 6a586506118f145e88a2f8c0983529110b7cb916 (diff) | |
| download | brew-1263b429dfa26cb3d3106ab3b7d00b5345b4d85a.tar.bz2 | |
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
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
