mklslar none mklslar false false
mkfilesindices none mkfilesindices false false
mkchecksums none mkchecksums false false
+signotherfiles none signotherfiles false false
mirror none mirror\ hardlinks false false
NOSTAGE remove_locks none false false
STATE postlock none false false
cleantransactions none none false false
EOF
)
+# FUNC ARGS TIME ERR BG
# we need to wait for the background processes before the end of dinstall
wait
trap remove_changelog_lock EXIT TERM HUP INT QUIT
fi
}
+
+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
+}