Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug-fix: Set correct and unique repo meta data #9949

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions packaging/update-apt-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,16 @@ APTLY_REPO_NAME="debify-$CODENAME"
APTLY_ROOTDIR=$(mktemp -d)
APTLY_CONFIG=$(mktemp)

# The origin and label fields seem to cover the base directory for the repo and codename.
# The docs seems to suggest these fields are optional and free-form: https://wiki.debian.org/DebianRepository/Format#Origin
# The origin and label fields are free text fields that should indicate the heritage of the package repository.
# They are used in an unattend-upgrade scenario and therefore they should be unique for each package source.
# Further information can be found here https://wiki.debian.org/DebianRepository/Format & https://wiki.debian.org/UnattendedUpgrades
# For fluent-bit a valid apt config entry for unattended upgrades is
# Unattended-Upgrade::Origins-Pattern {
# "origin=packages.fluentbit.io,codename=${distro_codename},label=fluent-bit"
# }
# They are security checks to verify if they have changed so we match the legacy server.
APTLY_ORIGIN=". $CODENAME"
APTLY_LABEL=". $CODENAME"
APTLY_ORIGIN="packages.fluentbit.io"
APTLY_LABEL="fluent-bit"
if [[ "$DEB_REPO" == "debian/bullseye" ]]; then
# For Bullseye, the legacy server had a slightly different setup we try to reproduce here
APTLY_ORIGIN="bullseye bullseye"
Expand Down