X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fmonthly.functions;h=22ba94bf3d8a02e3558628de8c67068228c4b97e;hb=398966bc13bbe130698d236e5be2d05fa181b40f;hp=738a3c8f857ad4d2bdf8459936271cf3ce29033a;hpb=58960572ca88248c4195e10b1cc8f9ea26565f4c;p=dak.git diff --git a/config/debian/monthly.functions b/config/debian/monthly.functions index 738a3c8f..22ba94bf 100644 --- a/config/debian/monthly.functions +++ b/config/debian/monthly.functions @@ -27,11 +27,13 @@ function archivequeuedone() { function rotatereports() { # Do not rotate while it might receive data if lockfile -r -1 ${LOCK_UNCHECKED} 2> /dev/null; then - for dir in ${queuedir}/{.,p-u-new,o-p-u-new} /srv/backports-master.debian.org/queue/policy; do + TMPFILES="${TMPFILES} ${LOCK_UNCHECKED}" + for dir in ${queuedir}/{.,p-u-new,o-p-u-new}; do cd ${dir} mv REPORT REPORT.${OLDDATE} xz -9 REPORT.${OLDDATE} touch REPORT done fi + rm ${LOCK_UNCHECKED} }