diff options
| author | Jack Nagel | 2013-04-05 22:00:36 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-04-05 22:00:36 -0500 |
| commit | fe7efcca9fcce2a0470ae186c12a84e861f8c0c9 (patch) | |
| tree | 1c4e9f20f76b004e24fb5c698c3bf259a3bc6afc /Library | |
| parent | 8ff6ea990053ca12bed023ff9ef128495f8c84ec (diff) | |
| download | homebrew-fe7efcca9fcce2a0470ae186c12a84e861f8c0c9.tar.bz2 | |
FormulaInstaller: initialize @tab
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 45f684129..969421399 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -17,6 +17,7 @@ class FormulaInstaller @show_header = false @ignore_deps = ARGV.ignore_deps? || ARGV.interactive? @options = Options.new + @tab = Tab.dummy_tab(ff) @@attempted ||= Set.new @@ -25,7 +26,7 @@ class FormulaInstaller end def pour_bottle? warn=false - (tab.used_options.empty? rescue true) && options.empty? && install_bottle?(f, warn) + tab.used_options.empty? && options.empty? && install_bottle?(f, warn) end def check_install_sanity @@ -267,7 +268,7 @@ class FormulaInstaller opts = Options.coerce(ARGV.options_only) unless opts.include? '--fresh' opts.concat(options) # from a dependent formula - opts.concat((tab.used_options rescue [])) # from a previous install + opts.concat(tab.used_options) # from a previous install end opts << Option.new("--build-from-source") # don't download bottle end |
