summaryrefslogtreecommitdiffstats
path: root/scripts/check-dm-acl
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:19:41 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:19:41 +0000
commita27c8b00ebf173659f22f53ce65679e94e7dfb1b (patch)
tree02c68ec259348b63c6328896aa73265eb7b3d730 /scripts/check-dm-acl
parentInitial commit. (diff)
downloaddebian-keyring-upstream.tar.xz
debian-keyring-upstream.zip
Adding upstream version 2022.12.24.upstream/2022.12.24upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'scripts/check-dm-acl')
-rwxr-xr-xscripts/check-dm-acl23
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/check-dm-acl b/scripts/check-dm-acl
new file mode 100755
index 0000000..e886975
--- /dev/null
+++ b/scripts/check-dm-acl
@@ -0,0 +1,23 @@
+#!/bin/bash
+#
+# Copyright (c) 2016 Jonathan McDowell <noodles@earth.li>
+# GNU GPL; v2 or later
+#
+# Grabs the DM ACL list from ftp-master and ensures that all the
+# active keys are still present. Outputs the last commit involving
+# a missing key and indicates if it has been moved to the DD keyring.
+#
+
+for fp in $(curl -s https://ftp-master.debian.org/dm.txt | awk '/^Fingerprint: / { print $2 }'); do
+ keyid=${fp:24}
+ if [ ! -e debian-maintainers-gpg/0x$keyid -a \
+ ! -e debian-nonupload-gpg/0x$keyid ]; then
+ if [ -e debian-keyring-gpg/0x$keyid ]; then
+ echo "0x$keyid moved to DD keyring."
+ else
+ echo "0x$keyid is missing."
+ fi
+ git log --format=oneline -n 1 -- \
+ debian-maintainers-gpg/0x$keyid
+ fi
+done