aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula_installer.rb
diff options
context:
space:
mode:
authorMike McQuaid2013-09-18 12:36:43 +0100
committerMike McQuaid2013-09-18 12:36:43 +0100
commita7e1dbae63ee62e7900dc7fbb3f67ea5c435a0a4 (patch)
treee15161dff15246d3a5368b3cddf0ea01bc2033bb /Library/Homebrew/formula_installer.rb
parent1390d5cc12bc93286c1cbd64ea6a34a4e7bfde02 (diff)
downloadbrew-a7e1dbae63ee62e7900dc7fbb3f67ea5c435a0a4.tar.bz2
Bottles: use options hash for install_bottle?
Diffstat (limited to 'Library/Homebrew/formula_installer.rb')
-rw-r--r--Library/Homebrew/formula_installer.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index ba655e307..d6f105d7d 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -30,8 +30,9 @@ class FormulaInstaller
check_install_sanity
end
- def pour_bottle? warn=false
- tab.used_options.empty? && options.empty? && install_bottle?(f, warn)
+ def pour_bottle? install_bottle_options={:warn=>false}
+ tab.used_options.empty? && options.empty? && \
+ install_bottle?(f, install_bottle_options)
end
def check_install_sanity
@@ -167,7 +168,7 @@ class FormulaInstaller
@poured_bottle = false
begin
- if pour_bottle? true
+ if pour_bottle? :warn => true
pour
@poured_bottle = true
tab = Tab.for_keg f.prefix