X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fdaily.functions;h=e6d6f2fb9da1cc3abed67ded9cfc62b3287c07aa;hb=5428cbbe30b7e2b77305024f45ef2fa2ffa68490;hp=3dae2d6d97a0282fc884583371c864213b0d03b0;hpb=9914190d8f003e8bbf8a0504a954c25600516299;p=dak.git diff --git a/config/debian/daily.functions b/config/debian/daily.functions index 3dae2d6d..e6d6f2fb 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