mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
upgrades: Improve handling of backports
- Merge backports functionality into upgrades module. - No need to enable systemd timer as dh_installsystemd automatically enables this during package installation and upgrade. - Use https:// and deb.debian.org for repository checking. When using Tor for package installations request the URL via Tor. - Make daily checking service more generic for all kind of future apt repository updates. - Force removal of repository file during purge to avoid failures. - Don't add contrib/non-free as backports is intended to be enabled for just the freedombox package and it is free. When the need arises, we can introduce contrib/non-free. This also eliminates an issue that adding these components doesn't work without the usage of tor. - Allow generate apt preferences file to avoid lintian complaining about its presence. Remove on purge. - Add unattended upgrades origin pattern to allow it to upgrade from backports repositories. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
11 files changed
+120
-190
No files matched your search
@@ -5,3 +5,12 @@ Unattended-Upgrade::Remove-Unused-Kernel-Packages "true";
|
||||
// Do automatic removal of new unused dependencies after the upgrade
|
||||
// (equivalent to apt-get autoremove)
|
||||
Unattended-Upgrade::Remove-Unused-Dependencies "true";
|
||||
|
||||
// Allow upgrading from backports repository. This origin pattern is added to
|
||||
// other configured patterns. This only works if the current distribution is a
|
||||
// stable release. Also all backuports packages have a priority of 100 which is
|
||||
// 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";
|
||||
};
|
||||
@@ -1,3 +0,0 @@
|
||||
Package: freedombox
|
||||
Pin: release a=buster-backports
|
||||
Pin-Priority: 800
|
||||
@@ -1,2 +0,0 @@
|
||||
plinth.modules.backports
|
||||
|
||||
Reference in new issue
Block a user