upgrades: Split apt preferences into 2 files

- 50freedombox4.pref handles freedombox package from current
  backports. Whenever upgrading to a new Debian release, backports can
  be activated for the new release, and will always include the
  freedombox package at the start.

- 51freedombox-apps.pref handles apps, and each entry is particular to
  a Debian release. For example, after bullseye release, entries from
  bullseye-backports can be added, and entries from buster-backports
  can be removed.

Tests:
- In testing container, run setup in development mode. Apt preferences
  files have the expected content.
- In stable vagrant box, install deb with these changes. Apt
  preferences files have the expected content.

Signed-off-by: James Valleroy <jvalleroy@mailbox.org>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
James Valleroy authored and Sunil Mohan Adapa committed 2020-07-13 14:44:29 -07:00
1 parent 2f1a6dc0f7
commit a60341f0d8
2 files changed
+11 -7

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ from plinth import cfg, glib, menu
from .manifest import backup # noqa, pylint: disable=unused-import
version = 3
version = 4
is_essential = True