From b2b264a9ae6c5d3ded689e9b76eb50fc15758f69 Mon Sep 17 00:00:00 2001
From: Joerg Jaspert <joerg@debian.org>
Date: Fri, 1 Jan 2016 10:27:29 +0100
Subject: [PATCH] Those who take a lock shall give it back later

---
 config/debian/monthly.functions | 1 +
 1 file changed, 1 insertion(+)

diff --git a/config/debian/monthly.functions b/config/debian/monthly.functions
index 738a3c8f..ae0e46eb 100644
--- a/config/debian/monthly.functions
+++ b/config/debian/monthly.functions
@@ -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}
-- 
2.39.5