From 3a4bd12d48fd68b1fbde5d07d0208a6939b9e2c8 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 8 Mar 2014 22:28:50 -0600 Subject: Add stubs for build_from_source and build_bottle installer modes --- Library/Homebrew/formula_installer.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index e93263c08..33fbf84f2 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -18,12 +18,15 @@ class FormulaInstaller attr_reader :f attr_accessor :options, :ignore_deps, :only_deps attr_accessor :show_summary_heading, :show_header + attr_accessor :build_from_source, :build_bottle def initialize ff @f = ff @show_header = false @ignore_deps = false @only_deps = false + @build_from_source = false + @build_bottle = false @options = Options.new @@attempted ||= Set.new @@ -34,6 +37,7 @@ class FormulaInstaller def pour_bottle? install_bottle_options={:warn=>false} return false if @pour_failed + return false if build_from_source || build_bottle options.empty? && install_bottle?(f, install_bottle_options) end -- cgit v1.2.3