upgrades: Use n= in apt preferences

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

Bump upgrades app version to rewrite the apt preferences file.

Note: The app version is kept lower than the one in bookworm-backports
currently (17). This is to ensure that additional setup steps are applied when
the bookworm-backports package gets installed.

Helps: #2368.

Tests:

- `apt policy freedombox` shows priority 500 for package in bookworm-backports.

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 18:40:56 -04:00 committed by Sunil Mohan Adapa
parent 6f22d0729e
commit 4933ff55b3
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ class UpgradesApp(app_module.App):
app_id = 'upgrades'
_version = 15
_version = 16
can_be_disabled = False

View File

@ -33,7 +33,7 @@ APT_PREFERENCES_FREEDOMBOX = \
'''Explanation: This file is managed by FreedomBox, do not edit.
Explanation: Allow carefully selected updates to 'freedombox' from backports.
Package: src:freedombox
Pin: release a={}-backports
Pin: release n={}-backports
Pin-Priority: 500
'''