From 10f5329ab87c69585e2a9a821e524a6cc7218700 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Tue, 19 May 2020 21:33:12 -0700 Subject: [PATCH] Specify key by long key id, not fingerprint MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The GnuPG manual says "The best way to specify a key Id is by using the fingerprint," but --trusted-key doesn't accept fingerprints. ಠ_ಠ --- overlays/keyedgit.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overlays/keyedgit.nix b/overlays/keyedgit.nix index a4465dc..7688ace 100644 --- a/overlays/keyedgit.nix +++ b/overlays/keyedgit.nix @@ -13,7 +13,7 @@ self: super: { ''; keyids = super.runCommand "keyids" {} '' ${homelessGPG} --no-default-keyring --with-colons --show-keys ${keys} | - ${self.gawk}/bin/awk -F: 'prev == "pub" && $1 == "fpr" { print $10 } { prev = $1 }' > $out + ${self.gawk}/bin/awk -F: '$1 == "pub" { print $5 }' > $out ''; keyedGPG = super.writeShellScript "keyed-gpg" '' trusted_key_args=() -- 2.44.1