summaryrefslogtreecommitdiff
path: root/user/trojita/fix-gpg.patch
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-07-31 17:10:56 -0500
committerKiyoshi Aman <kiyoshi.aman+apkfission@gmail.com>2018-07-31 17:10:56 -0500
commitcdad188dda65a63cf9926389ae2ea50f999439c9 (patch)
tree959b458e7fac0b5f235b16c7530c774590ff0bc4 /user/trojita/fix-gpg.patch
parentd834ebd9b0f56f9f1765f1995c7a9a11d5fda3b4 (diff)
downloadpackages-cdad188dda65a63cf9926389ae2ea50f999439c9.tar.gz
packages-cdad188dda65a63cf9926389ae2ea50f999439c9.tar.bz2
packages-cdad188dda65a63cf9926389ae2ea50f999439c9.tar.xz
packages-cdad188dda65a63cf9926389ae2ea50f999439c9.zip
user/trojita: new package
Diffstat (limited to 'user/trojita/fix-gpg.patch')
-rw-r--r--user/trojita/fix-gpg.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/user/trojita/fix-gpg.patch b/user/trojita/fix-gpg.patch
new file mode 100644
index 000000000..2f7a3c705
--- /dev/null
+++ b/user/trojita/fix-gpg.patch
@@ -0,0 +1,12 @@
+diff -Nurd trojita-0.7/tests/Cryptography/keygen.sh trojita-0.7.new/tests/Cryptography/keygen.sh
+--- trojita-0.7/tests/Cryptography/keygen.sh 2016-06-15 02:17:23.000000000 -0500
++++ trojita-0.7.new/tests/Cryptography/keygen.sh 2018-07-31 15:36:25.968877808 -0500
+@@ -115,7 +115,7 @@
+ echo -n "key *\nexpire\nseconds=1\nsave\n" | ${GPG} --no-tty --quiet --command-fd 0 --edit-key "expired@test.trojita.flaska.net"
+
+ # extract fingerprint of key to be deleted
+-FINGERPRINT="$(${GPG} --quiet --no-tty --list-keys --with-colons --fingerprint unknown@test.trojita.flaska.net | grep fpr | cut -d : -f 10)"
++FINGERPRINT="$(${GPG} --quiet --no-tty --list-keys --with-colons --fingerprint unknown@test.trojita.flaska.net | grep fpr | head -n 1 | cut -d : -f 10)"
+
+ # delete key
+ yes | DISPLAY="" ${GPG} --quiet --batch --no-tty --delete-secret-and-public-key --yes --command-fd 0 --passphrase-fd 0 "${FINGERPRINT}"