Package: debian-keyring Version: 2012.11.15 Severity: normal Hi,
Updats to DM's key always leave many unclear entries in debian/changelog. * 0x07FC4891042BA65A UNKNOWN (DM?) sig:4 * 0x0ADB299C1F137C9F UNKNOWN (DM?) sig:4 * 0x156EEC0737AD3296 UNKNOWN (DM?) sig:36 * 0x26CAA901117A251E UNKNOWN (DM?) sig:9 * 0x2713E679084651AF UNKNOWN (DM?) sig:21 * 0x38548517DAD3D5EE UNKNOWN (DM?) sig:1 * 0x398D1112D3A4BDE1 UNKNOWN (DM?) sig:3 ... It would be better if the keyids file (or another file) can include names of DM. Therefore, I wrote a patch to present a possible fix: using file "keyids-dm" to keep track of this info. An initial version could be generated by this: $ gpg --no-options --no-default-keyring --keyid-format long --keyring /usr/share/keyrings/debian-nonupload.gpg --with-colons -k |perl -F: -lane 'next unless /^pub/; $F[9] =~ s/\s*[(<].*$//; print "0x@F[4,9]"' > keyids-dm This patch modifies relevant scripts for keeping keyids-dm up to date, in the same way as keyids. $ bzr diff === modified file 'scripts/add-key' --- scripts/add-key 2012-09-22 05:33:40 +0000 +++ scripts/add-key 2012-11-16 05:48:13 +0000 @@ -72,6 +72,11 @@ read login echo "0x$keyid $name <$login>" >> keyids sort keyids > keyids.$$ && mv keyids.$$ keyids + elif ( echo $2 | egrep -q '^(\./)?debian-maintainer-gpg/?$' ); then + echo -n "Enter full name of new key: " + read name + echo "0x$keyid $name" >> keyids-dm + sort keyids-dm > keyids-dm.$$ && mv keyids-dm.$$ keyids-dm fi else echo "Not adding key." === modified file 'scripts/parse-gpg-update' --- scripts/parse-gpg-update 2009-12-22 14:50:29 +0000 +++ scripts/parse-gpg-update 2012-11-16 05:38:25 +0000 @@ -12,13 +12,15 @@ exit 1; } -open KEYIDS, "<keyids" or die "Can't open keyids file: $!"; -while (<KEYIDS>) { - chomp; - /^0x([^ ]*) (.*)/; - $ident{$1} = $2; +for my $keyids (qw( keyids keyids-dm )) { + open KEYIDS, "<$keyids" or die "Can't open $keyids file: $!"; + while (<KEYIDS>) { + chomp; + /^0x([^ ]*) (.*)/; + $ident{$1} = $2; + } + close KEYIDS; } -close KEYIDS; $ARGV[0] =~ s/0x//; === modified file 't/keyids-complete.t' --- t/keyids-complete.t 2010-12-05 06:06:46 +0000 +++ t/keyids-complete.t 2012-11-16 06:11:43 +0000 @@ -16,4 +16,15 @@ cd .. done +for keyring in debian-maintainers-gpg; do + cd $keyring + for key in 0x*; do + if ! grep -q "^$key " ../keyids-dm; then + echo "$keyring: $key is not in keyids-dm file." + fail=1 + fi + done + cd .. +done + exit $fail Regards, GUO Yixuan -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org