aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2015-09-11 15:07:59 +0100
committerMike McQuaid2015-09-11 15:09:24 +0100
commit3e12ffa6a75806b6241537569168a1beebc21225 (patch)
treeb7a677fafc4cc1d9f49ec089807d6564a0eb279d /Library
parentcfc6f737f3848ea22d061e308970ad701d615698 (diff)
downloadbrew-3e12ffa6a75806b6241537569168a1beebc21225.tar.bz2
test-bot: support uploading keep-old bottles.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/test-bot.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/test-bot.rb b/Library/Homebrew/cmd/test-bot.rb
index 7774cedc0..72ffa9a29 100644
--- a/Library/Homebrew/cmd/test-bot.rb
+++ b/Library/Homebrew/cmd/test-bot.rb
@@ -772,6 +772,7 @@ module Homebrew
ENV["HUDSON_COOKIE"] = nil
ARGV << "--verbose"
+ ARGV << "--keep-old" if ENV["UPSTREAM_BOTTLE_KEEP_OLD"]
bottles = Dir["#{jenkins}/jobs/#{job}/configurations/axis-version/*/builds/#{id}/archive/*.bottle*.*"]
return if bottles.empty?
@@ -805,6 +806,7 @@ module Homebrew
ENV["GIT_AUTHOR_EMAIL"] = ENV["GIT_COMMITTER_EMAIL"]
bottle_args = ["--merge", "--write", *Dir["*.bottle.rb"]]
bottle_args << "--tap=#{tap}" if tap
+ bottle_args << "--keep-old" if ARGV.include? "--keep-old"
safe_system "brew", "bottle", *bottle_args
remote_repo = tap ? tap.tr("/", "-") : "homebrew"