X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fdaily.functions;h=b5da4ee96e45fa092666043fef355b4f210af420;hb=a5f012fc23024078b91ee10dfdd077120cde74c9;hp=3dae2d6d97a0282fc884583371c864213b0d03b0;hpb=32063f01897651692754f8a2a0f189fa7c1f3c64;p=dak.git diff --git a/config/debian/daily.functions b/config/debian/daily.functions index 3dae2d6d..b5da4ee9 100644 --- a/config/debian/daily.functions +++ b/config/debian/daily.functions @@ -3,8 +3,7 @@ # get the latest list of wnpp bugs and their source packages function wnppbugs() { log "Fetching latest list of wnpp bugs" - TMPLIST=$( mktemp -p ${TMPDIR} ) - TMPFILES="${TMPFILES} ${TMPLIST}" + TMPLIST=$( gettempfile ) wget -q -O${TMPLIST} --ca-directory=/etc/ssl/ca-debian https://qa.debian.org/data/bts/wnpp_rm chmod go+r ${TMPLIST} mv ${TMPLIST} ${scriptdir}/masterfiles/wnpp_rm @@ -43,8 +42,7 @@ function newstats() { # Generate the contributor data function contributor() { log "Submitting data to contributors" - TMPCNTB=$( mktemp -p ${TMPDIR} ) - TMPFILES="${TMPFILES} ${TMPCNTB}" + TMPCNTB=$( gettempfile ) REQUESTS_CA_BUNDLE=/etc/ssl/ca-debian/ca-certificates.crt dc-tool --mine="${configdir}/contributor.source" --auth-token @"${base}/s3kr1t/contributor.auth" --source ftp.debian.org --json > ${TMPCNTB} # Post with curl as a workaround for #801506 @@ -60,3 +58,9 @@ function contributor() { log "----" rm -f ${TMPCNTB}.result } + +# Clean up urgency log +function cleanurgencylog() { + log "Cleaning up urgency log" + find /srv/ftp.debian.org/web/britney/urgencies -type -f -mtime +365 -delete +}