# HG changeset patch # User Matthias Förste # Date 1294056673 -3600 # Node ID cae9d212242fda67dcac8c7a2b08d10b0bfd4d4d # Parent 06fc21e7d5061c51d6ab684d67eb223f544e6c45 check only the actual signing key (fixes breakage when there are one or more subkeys); discovered gpgs '--with-colons' option for machine parseable output diff -r 06fc21e7d506 -r cae9d212242f bin/check-key-expiry --- a/bin/check-key-expiry Thu Dec 23 14:58:32 2010 +0100 +++ b/bin/check-key-expiry Mon Jan 03 13:11:13 2011 +0100 @@ -2,7 +2,7 @@ NOTIFY='edv@schlittermann.de' WARNTIME=$(expr 30 \* 24 \* 60 \* 60) # seconds -EXPIRY=$(date -d $(LC_ALL= LANG= gpg -k apt.schlittermann.de|grep -io 'expires:[^]]\+'|grep -io '[[:digit:]]\{4\}-[[:digit:]]\{2\}-[[:digit:]]\{2\}') +%s) +EXPIRY=$(date -d $(LC_ALL= LANG= gpg -k --with-colons apt.schlittermann.de|grep '^pub'|cut -d: -f7) +%s) TODAY=$(date +%s) #echo $EXPIRY #echo $TODAY