aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2013-04-05 22:00:36 -0500
committerJack Nagel2013-04-05 22:00:36 -0500
commit6eac9679c072e0666c2daa5f8ad694cd4134dfbb (patch)
tree0cab6a43975a9537b50aee524151fe14f89ed038 /Library/Homebrew
parente0d6ee863f495a1d7f2ca6368d9e3a149ebcc272 (diff)
downloadbrew-6eac9679c072e0666c2daa5f8ad694cd4134dfbb.tar.bz2
FormulaInstaller: initialize @tab
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formula_installer.rb5
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