upgrades: Allow backports from src:freedombox

This allows any binary package in src:freedombox to be upgraded from
backports, so that packaged manuals are included.

Thanks for Frank Woodward for finding the root cause and solution.

Tests:

- Build a FreedomBox bullseye image with backports disabled.

- During setup, enable backports, and update packages. freedombox
  package from bullseye-backports is installed, but freedombox-doc-*
  packages are from bullseye.

- Install freedombox package with the fix, and update
  packages. freedombox-doc-* packages from bullseye-backports are
  installed.

Closes #2106.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy 2022-03-18 13:22:04 -04:00 committed by Sunil Mohan Adapa
parent 5b8316bcc7
commit 5ea78f6e28
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -62,7 +62,7 @@ class UpgradesApp(app_module.App):
app_id = 'upgrades'
_version = 10
_version = 11
can_be_disabled = False