linuxmint / mintupdate

The Linux Mint Update Manager
309 stars 152 forks source link

Fix changelog retrieval for kernel updates #851

Closed Fs00 closed 2 weeks ago

Fs00 commented 6 months ago

This PR applies some code changes to allow the Update Manager to properly retrieve Linux kernel changelogs. I find them extremely useful to see the list of security patches and fixes included in each kernel update.

Without this PR, the manager tries to fetch (non-HWE) kernel changelogs from https://changelogs.ubuntu.com/changelogs/pool/main/l/linux-meta/linux-meta_{kernel_version}, which does not work because the version of the linux-meta package does not match the kernel one (for example, the latest 5.15 kernel at the time of writing is 5.15.0-91.101, but the corresponding linux-meta version is 5.15.0.91.88). Furthermore, even if the version were correct, linux-meta changelogs do not contain any information about what changed in a specific kernel update (see this changelog for example).

I've made sure that the changelog is correctly fetched for HWE kernels too. Before this PR, the Update Manager displayed linux-meta-hwe-X.Y changelogs for those kernels (e.g. https://changelogs.ubuntu.com/changelogs/pool/main/l/linux-meta-hwe-6.5/). In contrast to non-HWE kernels, fetching linux-meta-hwe changelogs worked because the checkAPT script was grouping kernel packages using the meta package version (which was then used to retrieve the changelog) instead of the actual kernel version.

I couldn't test this PR on LMDE, but everything should still work fine there.

Fixes #705

Fs00 commented 4 months ago

I've reworked this PR since the previous approach didn't work as intended on Mint 21.3 EDGE, which uses an HWE kernel. The description has been updated to reflect the latest changes. The PR is now ready for review and further testing.

Fs00 commented 1 month ago

Hello @clefebvre, can this PR make it into Mint 22?