From ad958335fb78ffe4e8a838860241fd69e623eae9 Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Tue, 27 Feb 2024 17:08:00 +0000 Subject: [PATCH] Include potential downgrades Using pinning we can instruct APT to actually downgrade some packages, this needs to be supported by mintupdate also. --- usr/lib/linuxmint/mintUpdate/checkAPT.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr/lib/linuxmint/mintUpdate/checkAPT.py b/usr/lib/linuxmint/mintUpdate/checkAPT.py index 82c0c90d..666ae15a 100755 --- a/usr/lib/linuxmint/mintUpdate/checkAPT.py +++ b/usr/lib/linuxmint/mintUpdate/checkAPT.py @@ -47,8 +47,9 @@ def find_changes(self): # Package updates for pkg in changes: - if (pkg.is_installed and pkg.marked_upgrade and pkg.candidate.version != pkg.installed.version): - self.add_update(pkg) + if (pkg.is_installed and pkg.candidate.version != pkg.installed.version): + if (pkg.marked_upgrade or pkg.marked_downgrade): + self.add_update(pkg) # Kernel updates lts_meta_name = "linux" + CONFIGURED_KERNEL_TYPE