paru icon indicating copy to clipboard operation
paru copied to clipboard

Don't rely on transparent decompression in list_aur

Open espeer opened this issue 1 month ago • 3 comments

The current AUR package list code relies on the reqwest client library to transparently decompress the packages.gz file. This only works if the server provides the 'Content-Encoding: gzip" HTTP header, which appears to have changed recently.

This patch explicitly decompresses the package list if no encoding information is provided by the server.

Fixes: https://github.com/Morganamilo/paru/issues/1447

espeer avatar Nov 25 '25 05:11 espeer

There are two other uses of packages.gz in completion.rs and search.rs which both need to be fixed.

q234rty avatar Nov 29 '25 14:11 q234rty

Pushed v3 to address completion.rs and search.rs.

espeer avatar Nov 29 '25 23:11 espeer

In case someone manually syncs this patch and wonders why it doesn't fix anything, try deleting ~/.cache/paru/packages.aur. Thank you for the fix, BTW

navoyan avatar Dec 19 '25 11:12 navoyan