Re: [arch-projects] [namcap] [PATCH] Add handling for compression into namcap.py

2020-12-16 Thread Emil Velikov via arch-projects
On Fri, 11 Dec 2020 at 20:29, Eli Schwartz via arch-projects 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

Re: [arch-projects] [namcap] [PATCH] Add handling for compression into namcap.py

2020-12-15 Thread meganomic via arch-projects
Fixed some potential bugs and made it all around better. I'm working on upstreaming support in xtarfile for LZ4 compression so hopefully the special handling for that can be removed soon. I also fixed a bug in xtarfile that prevents .tar files from being opened. So once the new version hits the

Re: [arch-projects] [namcap] [PATCH] Add handling for compression into namcap.py

2020-12-12 Thread Eli Schwartz via arch-projects
On 12/11/20 5:10 PM, meganomic via arch-projects wrote: > I did a quick patch using your idea and it definitely seems like a > good way to do it. Can probably clean it up and make it look prettier > with some refactoring. I'll look into it later. Nice, thanks! Haven't taken more than a

Re: [arch-projects] [namcap] [PATCH] Add handling for compression into namcap.py

2020-12-12 Thread meganomic via arch-projects
I refactored it and I think I've ironed out all the bugs. Does anyone have any additional ideas or see any glaring problems? diff --git a/namcap b/namcap index ea0bc94..019b077 100755 --- a/namcap +++ b/namcap @@ -1,39 +1,2 @@ #!/bin/bash - -args='' -tmp=$(mktemp -d --tmpdir namcap.XX)

Re: [arch-projects] [namcap] [PATCH] Add handling for compression into namcap.py

2020-12-11 Thread meganomic via arch-projects
I did a quick patch using your idea and it definitely seems like a good way to do it. Can probably clean it up and make it look prettier with some refactoring. I'll look into it later. diff --git a/namcap.py b/namcap.py index a7f532a..0e78b89 100755 --- a/namcap.py +++ b/namcap.py @@ -22,7

Re: [arch-projects] [namcap] [PATCH] Add handling for compression into namcap.py

2020-12-11 Thread Eli Schwartz via arch-projects
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

[arch-projects] [namcap] [PATCH] Add handling for compression into namcap.py

2020-12-11 Thread meganomic via arch-projects
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