Skip to content

Commit

Permalink
formula_installer: warn on bottles being skipped.
Browse files Browse the repository at this point in the history
We want to notify users that non-/usr/local installs may result in some
bottles being not used.

References #18540
  • Loading branch information
MikeMcQuaid committed Apr 1, 2013
1 parent 6731611 commit b014824
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Library/Homebrew/formula_installer.rb
Expand Up @@ -24,8 +24,8 @@ def initialize ff
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
Expand Down Expand Up @@ -94,7 +94,7 @@ def install

poured_bottle = false
begin
if pour_bottle?
if pour_bottle? true
pour
@poured_bottle = true
tab = Tab.for_keg f.prefix
Expand Down

0 comments on commit b014824

Please sign in to comment.