diff options
author | Phillip Lord <phillip.lord@russet.org.uk> | 2019-09-18 14:51:06 +0100 |
---|---|---|
committer | Phillip Lord <phillip.lord@russet.org.uk> | 2019-09-18 14:51:06 +0100 |
commit | 3c91cb34c469529c545e0cbd22e6979f25f1a670 (patch) | |
tree | 07ead87c2dfe58c8335cee290f522e78e1a2764b | |
parent | ccbb0309034d01f98fff73fb84814fbce30231e1 (diff) | |
download | emacs-3c91cb34c469529c545e0cbd22e6979f25f1a670.tar.gz |
Remove debug
* admin/nt/dist-build/build-dep-zips.py:
-rwxr-xr-x | admin/nt/dist-build/build-dep-zips.py | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/admin/nt/dist-build/build-dep-zips.py b/admin/nt/dist-build/build-dep-zips.py index fd3b06d5336..64e31a79bb6 100755 --- a/admin/nt/dist-build/build-dep-zips.py +++ b/admin/nt/dist-build/build-dep-zips.py @@ -68,26 +68,21 @@ def check_output_maybe(*args,**kwargs): return check_output(*args,**kwargs) def immediate_deps(pkg): - print("pkg", pkg) package_info = check_output(["pacman", "-Si", pkg]).decode("utf-8").split("\n") - #print(package_info) - #print([x for x in package_info if x.startswith("Depends On")]) ## Extract the "Depends On" line depends_on = [x for x in package_info if x.startswith("Depends On")][0] ## Remove "Depends On" prefix dependencies = depends_on.split(":")[1] - print(1, dependencies) + ## Split into dependencies dependencies = dependencies.strip().split(" ") - print(2, dependencies) + ## Remove > signs TODO can we get any other punctation here? dependencies = [d.split(">")[0] for d in dependencies if d] dependencies = [d for d in dependencies if not d == "None"] - print(3, dependencies) - dependencies = [MUNGE_DEP_PKGS.get(d, d) for d in dependencies] - print(4, dependencies) + dependencies = [MUNGE_DEP_PKGS.get(d, d) for d in dependencies] return dependencies |