Skip to content

Commit

Permalink
Include potential downgrades
Browse files Browse the repository at this point in the history
Using pinning we can instruct APT to actually downgrade some packages,
this needs to be supported by mintupdate also.
  • Loading branch information
clefebvre committed Feb 27, 2024
1 parent f9e73eb commit ad95833
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions usr/lib/linuxmint/mintUpdate/checkAPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad95833

Please sign in to comment.