upgrade: fix expansion of options for top-level formula objects
Fixes Homebrew/homebrew#20045.
This commit is contained in:
parent
404845eaeb
commit
5f38c19ba8
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user