On Fri, 11 Dec 2020 at 20:29, Eli Schwartz via arch-projects <arch-projects@archlinux.org> wrote:
On 12/11/20 2:25 PM, meganomic via arch-projects wrote:
Adds handling of the compression and temporary storage into namcap.py so it can be removed from the bash script. https://bugs.archlinux.org/task/59844 mentions "use setuptools entry points." instead of the bash script but I don't know how to do that. I just removed it from the bash script for now.
The subprocess to decompression tools is still (with your patch) just as annoying to me as the existence of the bash script. Python's builtin tarfile.open can handle gz, bz2, or xz.
Fwiw the python build-in handling of some archives is an order of magnitude slower, than on a uncompressed file. From brief testing, extracting is almost always a (time) win. Ages ago I was debugging a pathological case where a sub 20MB (compressed) binary package was of taking well over 6 _minutes_ IIRC with namcap. Will polish and send up my patches over the next few days. They help significantly, in said said case and overall. Regards, Emil