From 55d040d81f82d2b25b070271a06263bb8fd9727b Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 7 Sep 2022 11:28:37 +0200 Subject: [PATCH] build-and-provide-package: Use InRelease file instead of Release The InRelease is preferable file to use nowadays, quoting from https://wiki.debian.org/DebianRepository/Format?#Overview: | To download packages from a repository apt would download a InRelease or Release file from the $ARCHIVE_ROOT/dists/$DISTRIBUTION directory. | InRelease files are signed in-line while Release files should have an accompanying Release.gpg file. | The Release file lists the index files for the distribution and their hashes (the index file listed are relative to Release file location). Thanks: Mykola Malkov --- scripts/build-and-provide-package | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build-and-provide-package b/scripts/build-and-provide-package index 10aef52..4089d4e 100755 --- a/scripts/build-and-provide-package +++ b/scripts/build-and-provide-package @@ -701,7 +701,7 @@ cowbuilder_run() { if [ -d "${REPOSITORY}/dists/${release}" ]; then BINDMOUNTS="$BINDMOUNTS $REPOSITORY" local components="$(awk -F': ' '/^Components:/ { print $2 }' \ - "${REPOSITORY}/dists/${release}/Release")" + "${REPOSITORY}/dists/${release}/InRelease")" # Check if keyring is provided so the repository can be verified. if [ -n "${REPOSITORY_KEYRING:-}" ]; then local trusted=