Skip to content

Commit ad95833

Browse files
committed
Include potential downgrades
Using pinning we can instruct APT to actually downgrade some packages, this needs to be supported by mintupdate also.
1 parent f9e73eb commit ad95833

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

usr/lib/linuxmint/mintUpdate/checkAPT.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ def find_changes(self):
4747

4848
# Package updates
4949
for pkg in changes:
50-
if (pkg.is_installed and pkg.marked_upgrade and pkg.candidate.version != pkg.installed.version):
51-
self.add_update(pkg)
50+
if (pkg.is_installed and pkg.candidate.version != pkg.installed.version):
51+
if (pkg.marked_upgrade or pkg.marked_downgrade):
52+
self.add_update(pkg)
5253

5354
# Kernel updates
5455
lts_meta_name = "linux" + CONFIGURED_KERNEL_TYPE

0 commit comments

Comments
 (0)