]> git.decadent.org.uk Git - dak.git/commitdiff
byhand-dm
authorJoerg Jaspert <joerg@debian.org>
Sun, 30 Aug 2009 09:11:53 +0000 (11:11 +0200)
committerJoerg Jaspert <joerg@debian.org>
Sun, 30 Aug 2009 09:11:53 +0000 (11:11 +0200)
get rid of one autobyhand, yay

Signed-off-by: Joerg Jaspert <joerg@debian.org>
scripts/debian/byhand-dm [deleted file]

diff --git a/scripts/debian/byhand-dm b/scripts/debian/byhand-dm
deleted file mode 100755 (executable)
index da7ddd4..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/bin/sh -e
-
-BYHAND="$1"
-VERSION="$2"
-ARCH="$3"
-CHANGES="$4"
-
-KEYRING=/srv/keyring.debian.org/keyrings/debian-keyring.gpg
-
-DESTKR=/srv/ftp.debian.org/keyrings/debian-maintainers.gpg
-
-get_id () {
-  echo "SELECT U.name, U.uid FROM fingerprint F JOIN uid U ON (F.uid = U.id) WHERE F.fingerprint = '$1';" |
-    psql projectb -At |
-    sed 's/|\(.*\)/ <\1@debian.org>/'
-}
-
-is_allowed () {
-  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';" |
-    psql projectb -At | 
-    while read ALLOWED; do
-      if [ "$1" = "$ALLOWED" ]; then
-        echo yes
-       break
-      fi
-    done
-}
-
-FPRINT=$(gpgv --keyring "$KEYRING" --status-fd 3 3>&1 >/dev/null 2>&1 "$CHANGES" |
-    cut -d\  -f2,3 | grep ^VALIDSIG | head -n1 | cut -d\  -f2)
-
-ID="$(get_id "$FPRINT")"
-
-if [ "$(is_allowed "$ID")" != "yes" ]; then
-  echo "Unauthorised upload by $ID"
-  exit 1
-fi
-
-echo "Authorised upload by $ID, copying into place"
-
-OUT=$(mktemp)
-
-cp "$BYHAND" "$DESTKR"
-dak import-keyring --generate-users "%s" "$DESTKR" >$OUT
-
-if [ -s "$OUT" ]; then
-  /usr/sbin/sendmail -odq -oi -t <<EOF
-From: $ID
-To: <debian-project@lists.debian.org>
-Subject: Updated Debian Maintainers Keyring
-Content-Type: text/plain; charset=utf-8
-MIME-Version: 1.0
-
-With the upload of debian-maintainers version $VERSION, the following
-changes to the keyring have been made:
-
-$(cat $OUT)
-
-A summary of all the changes in this upload follows.
-
-Debian distribution maintenance software,
-on behalf of,
-$ID
-
-$(cat $CHANGES)
-EOF
-fi
-rm -f "$OUT"
-
-exit 0