all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob b79a22320d52f44dd887119026031b4cbd5f0bef 652 bytes (raw)
name: gnu/packages/patches/python-pwntools-guix-wrappers.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 
Parse argv properly when the programs are wrapped by Guix.
========================================================================
diff --git a/pwnlib/commandline/common.py b/pwnlib/commandline/common.py
index 75edfdcb..5249b6e6 100644
--- a/pwnlib/commandline/common.py
+++ b/pwnlib/commandline/common.py
@@ -28,5 +28,7 @@ parser_commands = parser.add_subparsers(dest='command')
 def main(file=sys.argv[0]):
     import pwnlib.commandline.main
     name = os.path.splitext(os.path.basename(file))[0]
+    if name.startswith('.') and name.endswith('-real'):
+        name = name[1:-5]
     sys.argv.insert(1, name)
     pwnlib.commandline.main.main()

debug log:

solving b79a22320d ...
found b79a22320d in https://yhetil.org/guix/20200607201941.5044-2-kuba@kadziolka.net/

applying [1/1] https://yhetil.org/guix/20200607201941.5044-2-kuba@kadziolka.net/
diff --git a/gnu/packages/patches/python-pwntools-guix-wrappers.patch b/gnu/packages/patches/python-pwntools-guix-wrappers.patch
new file mode 100644
index 0000000000..b79a22320d

Checking patch gnu/packages/patches/python-pwntools-guix-wrappers.patch...
Applied patch gnu/packages/patches/python-pwntools-guix-wrappers.patch cleanly.

index at:
100644 b79a22320d52f44dd887119026031b4cbd5f0bef	gnu/packages/patches/python-pwntools-guix-wrappers.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.