Skip to content

Commit

Permalink
_apt.py: Filter out kernel-related packages.
Browse files Browse the repository at this point in the history
These shouldn't be managed or tracked in the software manager

Fixes: linuxmint/mint22.1-beta#60.
  • Loading branch information
mtwebster committed Dec 29, 2024
1 parent 933069e commit f9f281c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions usr/lib/python3/dist-packages/mintcommon/installer/_apt.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ def process_full_apt_cache(cache):
continue
if pkg.candidate is None:
continue
# kernel, universe/kernel, multiverse/kernel, restricted/kernel
if pkg.candidate.section.endswith("kernel"):
continue
if name.startswith(("linux-headers-", "linux-tools-")):
continue
if ":" in name and name.split(":")[0] in keys:
continue
try:
Expand Down

0 comments on commit f9f281c

Please sign in to comment.