diff options
| author | Xu Cheng | 2016-07-17 18:18:41 +0800 |
|---|---|---|
| committer | Xu Cheng | 2016-07-18 18:11:53 +0800 |
| commit | 820b6347b8731faed631e4cef8e4e90a52d33501 (patch) | |
| tree | 7f819ed3655dd9e60d3f53fd2ef088853b2be420 /Library/Homebrew/cmd/reinstall.rb | |
| parent | e008f6e53cefb027980b88ba8d3962a14b7fa1e2 (diff) | |
| download | brew-820b6347b8731faed631e4cef8e4e90a52d33501.tar.bz2 | |
remove unnecessary `Tab.for_formula`
We already loaded tab in ARGV.resolved_formulae or Formulary.from_rack
Diffstat (limited to 'Library/Homebrew/cmd/reinstall.rb')
| -rw-r--r-- | Library/Homebrew/cmd/reinstall.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/reinstall.rb b/Library/Homebrew/cmd/reinstall.rb index dc3a02cef..b1cf3396c 100644 --- a/Library/Homebrew/cmd/reinstall.rb +++ b/Library/Homebrew/cmd/reinstall.rb @@ -11,8 +11,7 @@ module Homebrew end def reinstall_formula(f) - tab = Tab.for_formula(f) - options = tab.used_options | f.build.used_options + options = f.build.used_options notice = "Reinstalling #{f.full_name}" notice += " with #{options * ", "}" unless options.empty? @@ -25,7 +24,7 @@ module Homebrew fi = FormulaInstaller.new(f) fi.options = options - fi.build_bottle = ARGV.build_bottle? || (!f.bottled? && tab.build_bottle?) + fi.build_bottle = ARGV.build_bottle? || (!f.bottled? && f.build.build_bottle?) fi.build_from_source = ARGV.build_from_source? || ARGV.build_all_from_source? fi.force_bottle = ARGV.force_bottle? fi.interactive = ARGV.interactive? |
