aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2014-03-02 14:02:18 -0600
committerJack Nagel2014-03-02 14:02:18 -0600
commit939da295e778e18c66d507968be79412f4d189f2 (patch)
tree2769695f3ae44c67d81b17dd6998d74b7606d6cd /Library/Homebrew/cmd
parentfac94c0d08d0192dfdc0511492c9c79382575293 (diff)
downloadhomebrew-939da295e778e18c66d507968be79412f4d189f2.tar.bz2
Stop mutating build options in upgrade
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/upgrade.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/Library/Homebrew/cmd/upgrade.rb b/Library/Homebrew/cmd/upgrade.rb
index d222c5a98..644e61184 100644
--- a/Library/Homebrew/cmd/upgrade.rb
+++ b/Library/Homebrew/cmd/upgrade.rb
@@ -54,16 +54,10 @@ module Homebrew extend self
end
def upgrade_formula f
- tab = Tab.for_formula(f)
-
- # Inject options from a previous install into the formula's
- # BuildOptions object. TODO clean this up.
- f.build.args += tab.used_options
-
outdated_keg = Keg.new(f.linked_keg.realpath) rescue nil
installer = FormulaInstaller.new(f)
- installer.options |= tab.used_options
+ installer.options |= Tab.for_formula(f).used_options
installer.show_header = false
oh1 "Upgrading #{f.name}"