aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorXu Cheng2015-10-19 21:50:12 +0800
committerXu Cheng2015-10-19 21:50:12 +0800
commit1a0f64d5f8d775fd5a6e22b566404a3245022c02 (patch)
tree98cf43e702ffbd93f2a718e86da50e8995515861 /Library/Homebrew/cmd
parent4ef15427bacc84622561bde6b8474a1df996eb52 (diff)
downloadbrew-1a0f64d5f8d775fd5a6e22b566404a3245022c02.tar.bz2
test-bot: don't use `--build-bottle` flag if bottle disabled
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 38e267f9d..9997b7eee 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -547,13 +547,13 @@ module Homebrew
test "brew", "postinstall", *changed_dependences
end
formula_fetch_options = []
- formula_fetch_options << "--build-bottle" unless ARGV.include? "--fast"
+ formula_fetch_options << "--build-bottle" if !ARGV.include?("--fast") && !formula.bottle_disabled?
formula_fetch_options << "--force" if ARGV.include? "--cleanup"
formula_fetch_options << canonical_formula_name
test "brew", "fetch", "--retry", *formula_fetch_options
test "brew", "uninstall", "--force", canonical_formula_name if formula.installed?
install_args = ["--verbose"]
- install_args << "--build-bottle" unless ARGV.include? "--fast"
+ install_args << "--build-bottle" if !ARGV.include?("--fast") && !formula.bottle_disabled?
install_args << "--HEAD" if ARGV.include? "--HEAD"
# Pass --devel or --HEAD to install in the event formulae lack stable. Supports devel-only/head-only.