+
+function signotherfiles() {
+ log "Signing extra mirror files"
+
+ local archiveroot
+
+ for archive in "${public_archives[@]}"; do
+ log "... archive: ${archive}"
+ archiveroot="$(get_archiveroot "${archive}")"
+ local TMPLO=$( mktemp -p ${TMPDIR} )
+ trap "rm -f ${TMPLO}" ERR EXIT TERM HUP INT QUIT
+
+ cd ${archiveroot}
+ rm -f extrafiles
+ sha256sum $(find * -type f | egrep -v '(pool|i18n|dep11|source)/|Contents-.*\.(gz|diff)|installer|binary-|(In)?Release(.gpg)?|\.changes') > ${TMPLO}
+ gpg --no-options --batch --no-tty --armour --personal-digest-preferences=SHA256 --secret-keyring /srv/ftp-master.debian.org/s3kr1t/dot-gnupg/secring.gpg --keyring /srv/ftp-master.debian.org/s3kr1t/dot-gnupg/pubring.gpg --no-options --batch --no-tty --armour --default-key 473041FA --clearsign --output ${archiveroot}/extrafiles ${TMPLO}
+ rm -f ${TMPLO}
+ done
+}