Skip to content
Snippets Groups Projects
Commit 6eac9679 authored by Jack Nagel's avatar Jack Nagel
Browse files

FormulaInstaller: initialize @tab

parent e0d6ee86
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment