]> git.decadent.org.uk Git - dak.git/commitdiff
Those who take a lock shall give it back later
authorJoerg Jaspert <joerg@debian.org>
Fri, 1 Jan 2016 09:27:29 +0000 (10:27 +0100)
committerJoerg Jaspert <joerg@debian.org>
Fri, 1 Jan 2016 09:27:29 +0000 (10:27 +0100)
config/debian/monthly.functions

index 738a3c8f857ad4d2bdf8459936271cf3ce29033a..ae0e46eb640534f7e62f7b8d9d00f4cbe6beb02c 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}