diff options
| author | Xu Cheng | 2016-07-18 18:03:27 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-07-18 18:11:54 +0800 |
| commit | d7ee54129310de2b8b4989e6a47607fd1fb7db6c (patch) | |
| tree | c24a3dfdac8f27cde74d1b6895377542f5254e60 | |
| parent | 820b6347b8731faed631e4cef8e4e90a52d33501 (diff) | |
| download | brew-d7ee54129310de2b8b4989e6a47607fd1fb7db6c.tar.bz2 | |
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>
| -rw-r--r-- | Library/Homebrew/cmd/reinstall.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/reinstall.rb b/Library/Homebrew/cmd/reinstall.rb index b1cf3396c..aa705cff3 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? |
