X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fdinstall.functions;h=872357e1a490635b5c6f621c50b2290ee07b6f51;hb=5428cbbe30b7e2b77305024f45ef2fa2ffa68490;hp=acfbee4de6fb265029655274ce9923a60eb0d04d;hpb=ddeee80a2f3389f89fb5ee1d7ecc5e36a68279d7;p=dak.git diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions index acfbee4d..872357e1 100644 --- a/config/debian/dinstall.functions +++ b/config/debian/dinstall.functions @@ -1,11 +1,5 @@ # -*- mode:sh -*- -# Remove daily lock -# FIXME: Dead code when switched to cronscript -function remove_daily_lock() { - rm -f $LOCK_DAILY -} - # Remove changelog lock function remove_changelog_lock() { rm -f $LOCK_CHANGELOG @@ -188,7 +182,7 @@ function fingerprints() { log "Updating fingerprints" dak import-keyring -L /srv/keyring.debian.org/keyrings/debian-keyring.gpg - OUTFILE=$(mktemp) + OUTFILE=$( gettempfile ) dak import-keyring --generate-users "%s" /srv/keyring.debian.org/keyrings/debian-maintainers.gpg >"${OUTFILE}" if [ -s "${OUTFILE}" ]; then @@ -697,8 +691,7 @@ function signotherfiles() { 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 + local TMPLO=$( gettempfile ) cd ${archiveroot} rm -f extrafiles @@ -716,3 +709,9 @@ function startup() { touch "${LOCK_BRITNEY}" TMPFILES="${TMPFILES} ${LOCK_DAILY} ${LOCK_BRITNEY}" } + +function postcronscript() { + logstats ${LOGFILE} + state "all done" + touch "${DINSTALLEND}" +} \ No newline at end of file