Skip to content

Commit

Permalink
build.sh: Fix bug in build script for RC release
Browse files Browse the repository at this point in the history
For release candidate, the APT repo distribution should be "testing" instead of "stable"

Closes #10346.

PiperOrigin-RevId: 283327228
  • Loading branch information
meteorcloudy authored and copybara-github committed Dec 2, 2019
1 parent 807ed23 commit db0e32c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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
Expand Down

0 comments on commit db0e32c

Please sign in to comment.