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 meganomic via arch-projects
ible wrong:", err) + sys.exit(1) - if os.path.isfile(package) and tarfile.is_tarfile(package): - process_realpackage(package, active_modules) elif 'PKGBUILD' in package: process_pkgbuild(package, active_modules) + else:

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

2020-12-11 Thread meganomic via arch-projects
dules) elif 'PKGBUILD' in package: process_pkgbuild(package, active_modules) + else: print("Error: %s not package or PKGBUILD" % package) ‐‐‐ Original Message ‐‐‐ On Friday, December 11, 2020 9:29 PM, Eli Schwartz via arch-pr

[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

[arch-projects] [namcap] [PATCH] Change from getopt to argparse

2020-12-05 Thread meganomic via arch-projects
Simple change from using getopt to using argparse. Also fixes https://bugs.archlinux.org/task/56995 diff --git a/namcap.py b/namcap.py index a7f532a..bb2754e 100755 --- a/namcap.py +++ b/namcap.py @@ -19,10 +19,10 @@ # # -import getopt import os import sys import tarfile +import argparse