test-bot: skip bottling if it's unneeded

This commit is contained in:
Xu Cheng 2015-10-19 18:04:31 +08:00
parent d20d08b5fe
commit c4067cf8bb

View File

@ -582,7 +582,7 @@ module Homebrew
audit_args << "--strict" << "--online" if @added_formulae.include? formula_name audit_args << "--strict" << "--online" if @added_formulae.include? formula_name
test "brew", "audit", *audit_args test "brew", "audit", *audit_args
if install_passed if install_passed
if formula.stable? && !ARGV.include?("--fast") if formula.stable? && !ARGV.include?("--fast") && !formula.bottle_disabled?
bottle_args = ["--verbose", "--rb", canonical_formula_name] bottle_args = ["--verbose", "--rb", canonical_formula_name]
bottle_args << "--keep-old" if ARGV.include? "--keep-old" bottle_args << "--keep-old" if ARGV.include? "--keep-old"
test "brew", "bottle", *bottle_args test "brew", "bottle", *bottle_args