diff --git a/Library/Homebrew/cmd/upgrade.rb b/Library/Homebrew/cmd/upgrade.rb index c17957e204..fe41a15072 100644 --- a/Library/Homebrew/cmd/upgrade.rb +++ b/Library/Homebrew/cmd/upgrade.rb @@ -56,6 +56,11 @@ module Homebrew extend self 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)