aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2013-01-23 00:26:27 -0600
committerJack Nagel2013-01-26 12:14:46 -0600
commit5822aa80cf685d989ff1f84d91cf20e1fca1dfbc (patch)
treeab4fe3708443ef34e34199f2c982712de766c25b /Library/Homebrew/cmd
parent55681ca2019a5d52dc4982c64f65fca5a4bc974d (diff)
downloadbrew-5822aa80cf685d989ff1f84d91cf20e1fca1dfbc.tar.bz2
FormulaInstaller: make tab an attr, but never a parameter
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/upgrade.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/upgrade.rb b/Library/Homebrew/cmd/upgrade.rb
index 6d477d6a8..026494d98 100644
--- a/Library/Homebrew/cmd/upgrade.rb
+++ b/Library/Homebrew/cmd/upgrade.rb
@@ -60,7 +60,8 @@ module Homebrew extend self
tab = (f.opt_prefix.exist? ? Tab.for_keg(f.opt_prefix) : Tab.dummy_tab(f))
outdated_keg = Keg.new(f.linked_keg.realpath) rescue nil
- installer = FormulaInstaller.new(f, tab)
+ installer = FormulaInstaller.new(f)
+ installer.tab = tab
installer.show_header = false
installer.install_bottle = (install_bottle?(f) and tab.used_options.empty?)