test-bot: use UPSTREAM_BOTTLE_KEEP_OLD.

This is set by Jenkins to indicate a downstream bottle upload job needs
to use `brew bottle --keep-old`.
This commit is contained in:
Mike McQuaid 2016-09-04 20:07:35 +01:00
parent 2e5e9286f7
commit 3acaecca8b

View File

@ -857,7 +857,11 @@ module Homebrew
safe_system "brew", "pull", "--clean", pull_pr
end
if ENV["UPSTREAM_BOTTLE_KEEP_OLD"]
system "brew", "bottle", "--merge", "--write", "--keep-old", *json_files
else
system "brew", "bottle", "--merge", "--write", *json_files
end
remote = "git@github.com:BrewTestBot/homebrew-#{tap.repo}.git"
git_tag = pr ? "pr-#{pr}" : "testing-#{number}"