Commit 1766281b authored by segfault's avatar segfault

VeraCrypt release docs: Fail if variable unset (refs: #15524)

parent 80a024d4
......@@ -32,32 +32,32 @@ If any of these have a new version in stretch or stretch-security:
RELEASE=stable
# The topic branch for this update
BRANCH=feature/update-udisks
SUITE="$(echo "${BRANCH}" | sed -e 's,[^.a-z0-9-],-,ig' | tr '[A-Z]' '[a-z]')"
SUITE="$(echo "${BRANCH:?}" | sed -e 's,[^.a-z0-9-],-,ig' | tr '[A-Z]' '[a-z]')"
sudo tee /etc/apt/sources.list.d/tails.list <<EOF
deb-src tor+http://jenw7xbd6tf7vfhp.onion/ "${RELEASE}" main
deb-src tor+http://jenw7xbd6tf7vfhp.onion/ "${RELEASE:?}" main
deb-src [check-valid-until=no] tor+http://snapshot.debian.org/archive/debian/20180904T000000Z/ stretch main
EOF
sudo apt update
apt source --download-only "${PACKAGE_NAME}={OLD_VERSION}"
apt source --download-only "${PACKAGE_NAME}={ORIGINAL_VERSION}"
apt source --download-only "${PACKAGE_NAME:?}={OLD_VERSION:?}"
apt source --download-only "${PACKAGE_NAME:?}={ORIGINAL_VERSION:?}"
1. Get the debdiff of our patches:
debdiff "${PACKAGE_NAME}_${ORIGINAL_VERSION}.dsc" "${PACKAGE_NAME}_${OLD_VERSION}.dsc" > tails.diff
debdiff "${PACKAGE_NAME:?}_${ORIGINAL_VERSION:?}.dsc" "${PACKAGE_NAME:?}_${OLD_VERSION:?}.dsc" > tails.diff
1. Download the new source package:
apt source "${PACKAGE_NAME}=${NEW_VERSION}"
apt source "${PACKAGE_NAME:?}=${NEW_VERSION:?}"
1. Apply the debdiff on the new version:
debdiff-apply "${PACKAGE_NAME}_${NEW_VERSION}.dsc" tails.diff
debdiff-apply "${PACKAGE_NAME:?}_${NEW_VERSION:?}.dsc" tails.diff
1. Add changelog entry and build a new version of the patched package
in a Stretch/amd64 chroot:
cd "${PACKAGE_NAME}"*/
debchange -i --distribution="${SUITE}" --force-distribution
cd "${PACKAGE_NAME:?}"*/
debchange -i --distribution="${SUITE:?}" --force-distribution
pdebuild
1. Install the newly built package in the build environment and rebuild all
......@@ -71,7 +71,7 @@ If any of these have a new version in stretch or stretch-security:
1. Sign and upload updated packages
debsign "${CHANGES_FILE}"
dupload --to tails "${CHANGES_FILE}"
debsign "${CHANGES_FILE:?}"
dupload --to tails "${CHANGES_FILE:?}"
1. Update the "version in Tails" in this document.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment