Make build_from_source an explicit installer mode

This commit is contained in:
Jack Nagel 2014-03-10 14:56:02 -05:00
parent 42e60f7c59
commit a911dd5066
3 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,6 @@ end
def install_bottle? f, options={:warn=>false} def install_bottle? f, options={:warn=>false}
return true if f.local_bottle_path return true if f.local_bottle_path
return false if ARGV.build_from_source?
return true if ARGV.force_bottle? return true if ARGV.force_bottle?
return false unless f.pour_bottle? return false unless f.pour_bottle?
return false unless f.default_build? return false unless f.default_build?

View File

@ -107,6 +107,7 @@ module Homebrew extend self
fi.ignore_deps = ARGV.ignore_deps? || ARGV.interactive? fi.ignore_deps = ARGV.ignore_deps? || ARGV.interactive?
fi.only_deps = ARGV.only_deps? fi.only_deps = ARGV.only_deps?
fi.build_bottle = ARGV.build_bottle? fi.build_bottle = ARGV.build_bottle?
fi.build_from_source = ARGV.build_from_source?
fi.prelude fi.prelude
fi.install fi.install
fi.caveats fi.caveats

View File

@ -60,6 +60,7 @@ module Homebrew extend self
installer.options |= Tab.for_formula(f).used_options installer.options |= Tab.for_formula(f).used_options
installer.show_header = false installer.show_header = false
installer.ignore_deps = false installer.ignore_deps = false
installer.build_from_source = ARGV.build_from_source?
installer.prelude installer.prelude
oh1 "Upgrading #{f.name}" oh1 "Upgrading #{f.name}"