From 1a4bea3a550c94f9804293375b2e99eb4fab1118 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Wed, 17 Jul 2013 22:08:21 -0700 Subject: brew-test-bot: only force fetch with --cleanup. --- Library/Contributions/cmd/brew-test-bot.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Contributions/cmd/brew-test-bot.rb b/Library/Contributions/cmd/brew-test-bot.rb index 772ceee63..5ef11db69 100755 --- a/Library/Contributions/cmd/brew-test-bot.rb +++ b/Library/Contributions/cmd/brew-test-bot.rb @@ -256,7 +256,9 @@ class Test end test "brew fetch #{dependencies}" unless dependencies.empty? - test "brew fetch --force --build-bottle #{formula}" + formula_fetch_options = "--build-bottle" + formula_fetch_options << " --force" if ARGV.include? '--cleanup' + test "brew fetch #{formula_fetch_options} #{formula}" test "brew uninstall --force #{formula}" if formula_object.installed? install_args = '--verbose --build-bottle' install_args << ' --HEAD' if ARGV.include? '--HEAD' -- cgit v1.2.3