]> git.decadent.org.uk Git - dak.git/blobdiff - config/debian/daily.functions
LOCAL: Remove replay check
[dak.git] / config / debian / daily.functions
index 3dae2d6d97a0282fc884583371c864213b0d03b0..b5da4ee96e45fa092666043fef355b4f210af420 100644 (file)
@@ -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
+}