reinstall: handle new options
Since we are loading options as Formula#build from tab, we will have to explicitly read options from ARGV as well. Fixes #3066. Closes #537. Signed-off-by: Xu Cheng <xucheng@me.com>
This commit is contained in:
parent
820b6347b8
commit
d7ee541293
@ -11,7 +11,8 @@ module Homebrew
|
||||
end
|
||||
|
||||
def reinstall_formula(f)
|
||||
options = f.build.used_options
|
||||
options = BuildOptions.new(Options.create(ARGV.flags_only), f.options).used_options
|
||||
options |= f.build.used_options
|
||||
|
||||
notice = "Reinstalling #{f.full_name}"
|
||||
notice += " with #{options * ", "}" unless options.empty?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user