]> git.decadent.org.uk Git - dak.git/blobdiff - config/debian/monthly.functions
Ups, that backports dir is still in use
[dak.git] / config / debian / monthly.functions
index 738a3c8f857ad4d2bdf8459936271cf3ce29033a..c930f62a5810c2bc7ba1ad8ffdf78d52f421fee7 100644 (file)
@@ -27,6 +27,7 @@ function archivequeuedone() {
 function rotatereports() {
     # Do not rotate while it might receive data
     if lockfile -r -1 ${LOCK_UNCHECKED} 2> /dev/null; then
+        TMPFILES="${TMPFILES} ${LOCK_UNCHECKED}"
         for dir in ${queuedir}/{.,p-u-new,o-p-u-new} /srv/backports-master.debian.org/queue/policy; do
             cd ${dir}
             mv REPORT REPORT.${OLDDATE}
@@ -34,4 +35,5 @@ function rotatereports() {
             touch REPORT
         done
     fi
+    rm ${LOCK_UNCHECKED}
 }