From d7ee54129310de2b8b4989e6a47607fd1fb7db6c Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Mon, 18 Jul 2016 18:03:27 +0800 Subject: [PATCH] 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 --- Library/Homebrew/cmd/reinstall.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/reinstall.rb b/Library/Homebrew/cmd/reinstall.rb index b1cf3396c8..aa705cff3f 100644 --- a/Library/Homebrew/cmd/reinstall.rb +++ b/Library/Homebrew/cmd/reinstall.rb @@ -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?