8 KEYRING=/srv/keyring.debian.org/keyrings/debian-keyring.gpg
10 DESTKR=/srv/ftp.debian.org/keyrings/debian-maintainers.gpg
13 echo "SELECT U.name, U.uid FROM fingerprint F JOIN uid U ON (F.uid = U.id) WHERE F.fingerprint = '$1';" |
15 sed 's/|\(.*\)/ <\1@debian.org>/'
19 echo "SELECT M.name from src_uploaders U join source S on (U.source = S.id) join maintainer M on (U.maintainer = M.id) WHERE S.source = 'debian-maintainers';" |
21 while read ALLOWED; do
22 if [ "$1" = "$ALLOWED" ]; then
29 FPRINT=$(gpgv --keyring "$KEYRING" --status-fd 3 3>&1 >/dev/null 2>&1 "$CHANGES" |
30 cut -d\ -f2,3 | grep ^VALIDSIG | head -n1 | cut -d\ -f2)
32 ID="$(get_id "$FPRINT")"
34 if [ "$(is_allowed "$ID")" != "yes" ]; then
35 echo "Unauthorised upload by $ID"
39 echo "Authorised upload by $ID, copying into place"
43 cp "$BYHAND" "$DESTKR"
44 dak import-keyring --generate-users "%s" "$DESTKR" >$OUT
46 if [ -s "$OUT" ]; then
47 /usr/sbin/sendmail -odq -oi -t <<EOF
49 To: <debian-project@lists.debian.org>
50 Subject: Updated Debian Maintainers Keyring
51 Content-Type: text/plain; charset=utf-8
54 With the upload of debian-maintainers version $VERSION, the following
55 changes to the keyring have been made:
59 A summary of all the changes in this upload follows.
61 Debian distribution maintenance software,