From a27c8b00ebf173659f22f53ce65679e94e7dfb1b Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 11:19:41 +0200 Subject: Adding upstream version 2022.12.24. Signed-off-by: Daniel Baumann --- t/no-expired.t | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 t/no-expired.t (limited to 't/no-expired.t') diff --git a/t/no-expired.t b/t/no-expired.t new file mode 100755 index 0000000..7ac6eb8 --- /dev/null +++ b/t/no-expired.t @@ -0,0 +1,20 @@ +#!/bin/sh +# Looks for expired keys in our active keyrings +set -e + +find_expired () { + k=$1 + gpg --no-options --no-auto-check-trustdb --no-default-keyring \ + --keyring "./output/keyrings/$k" --list-keys --with-colons \ + | grep -a '^pub' \ + | awk -F: -v keyring=$1 \ + '$2 == "e" {print keyring ":\t0x" $5 " expired on " strftime("%F %T", $7) " (" $10 ")"}' +} + +fail=0 +for keyring in debian-keyring.gpg debian-maintainers.gpg \ + debian-nonupload.gpg; do + find_expired $keyring +done + +exit $fail -- cgit v1.2.3