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
master
Michael Prokop 4 years ago
parent 50983f2f05
commit 55d040d81f

@ -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=

Loading…
Cancel
Save