upgrades: Use n= for unattended-upgrades origin pattern

In the Debian bookworm-backports repository, the Suite has changed to
"stable-backports". The Codename is the more specific "bookworm-backports".

Tests:

- Build a freedombox package for bookworm-backports with a smaller version
  number than the package in bookworm-backports. Install it in bookworm vagrant
  box.

- Run a manual update. freedombox is upgraded to the version in
  bookworm-backports.

Closes: #2368.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy 2023-07-29 19:23:51 -04:00 committed by Sunil Mohan Adapa
parent 4933ff55b3
commit d10bb0e835
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -12,7 +12,7 @@ Unattended-Upgrade::Remove-Unused-Dependencies "true";
// ignored. Only packages that have higher priority set explicitly will get
// upgraded. Only selected FreedomBox packages have high priority set on them.
Unattended-Upgrade::Origins-Pattern {
"o=Debian Backports,a=${distro_codename}-backports,l=Debian Backports";
"o=Debian Backports,n=${distro_codename}-backports,l=Debian Backports";
};
// Automatically reboot *WITHOUT CONFIRMATION* if