]> git.michaelhowe.org Git - packages/m/mh-archive-keyring.git/commitdiff
Remove trust packets from generated keyrings
authorMichael Howe <michael@michaelhowe.org>
Sat, 24 Jan 2026 18:52:59 +0000 (18:52 +0000)
committerMichael Howe <michael@michaelhowe.org>
Sat, 24 Jan 2026 18:55:52 +0000 (18:55 +0000)
See Debian's f2f98681acd119a7c0cf33ea7398752c6f36aafb - they might make
it unreproducible as they may change between GnuPG versions.

Makefile

index 8c7fb327040958d3edc1839616712213cb949f4b..65e1f60970e43ac21bd1b81fe1204ab6c584adc3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,13 @@ build: keyrings/mh-archive-keyring.gpg $(TRUSTED-LIST)
 
 keyrings/mh-archive-keyring.gpg: active-keys/index
        jetring-build -I $@ active-keys
+       gpg ${GPG_OPTIONS} --no-keyring --import-options import-export --import < $@ > $@.tmp
+       mv -f $@.tmp $@
+
+keyrings/mh-archive-removed-keys.gpg: removed-keys/index
+       jetring-build -I $@ removed-keys
+       gpg ${GPG_OPTIONS} --no-keyring --import-options import-export --import < $@ > $@.tmp
+       mv -f $@.tmp $@
 
 $(TRUSTED-LIST) :: trusted.gpg/mh-archive-%.gpg : active-keys/add-% active-keys/index
        mkdir -p $(TMPRING) trusted.gpg