From db0e32ca6296e56e5314993fe9939bc7331768ec Mon Sep 17 00:00:00 2001 From: Yun Peng Date: Mon, 2 Dec 2019 06:13:48 -0800 Subject: [PATCH] build.sh: Fix bug in build script for RC release For release candidate, the APT repo distribution should be "testing" instead of "stable" Closes #10346. PiperOrigin-RevId: 283327228 --- scripts/ci/build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh index 8ed03d622e7037..2f9f72a3b98323 100755 --- a/scripts/ci/build.sh +++ b/scripts/ci/build.sh @@ -243,7 +243,7 @@ EOF # Merge metadata with previous distribution function merge_previous_dists() { local distribution="$1" - # Download the metadata info from previous distrubution + # Download the metadata info from previous distribution mkdir -p previous gsutil -m cp -r "gs://bazel-apt/dists" "./previous" @@ -263,9 +263,9 @@ function merge_previous_dists() { mv "dists/${distribution}/Release.new" "dists/${distribution}/Release" # Generate new signatures for Release file - rm -f "dists/stable/InRelease" "dists/stable/Release.gpg" - gpg --output "dists/stable/InRelease" --clear-sign "dists/stable/Release" - gpg --output "dists/stable/Release.gpg" --detach-sign "dists/stable/Release" + rm -f "dists/${distribution}/InRelease" "dists/${distribution}/Release.gpg" + gpg --output "dists/${distribution}/InRelease" --clear-sign "dists/${distribution}/Release" + gpg --output "dists/${distribution}/Release.gpg" --detach-sign "dists/${distribution}/Release" } # Create a debian package with version in package name and add it to the repo