[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] clean the debbugs version track archive



Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
 config/debian/common     |    7 +++++++
 config/debian/cron.daily |    2 ++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/config/debian/common b/config/debian/common
index 9fd9838..a42c18f 100644
--- a/config/debian/common
+++ b/config/debian/common
@@ -90,6 +90,13 @@ function sync_debbugs () {
     fi
 }
 
+function clean_debbugs () {
+    # Delete files older than 60 days
+    find $queuedir/bts_version_track_archive/ -mtime +60 -type f -delete
+    # Delete empty directories
+    find $queuedir/bts_version_track_archive/ -empty -type d -delete
+}
+
 function reports() {
     # Send a report on NEW/BYHAND packages
     log "Nagging ftpteam about NEW/BYHAND packages"
diff --git a/config/debian/cron.daily b/config/debian/cron.daily
index e4f2571..1ededd0 100755
--- a/config/debian/cron.daily
+++ b/config/debian/cron.daily
@@ -28,4 +28,6 @@ mv ${TMPFILE} /srv/ftp-master.debian.org/scripts/masterfiles/wnpp_rm
 
 reports
 
+clean_debbugs
+
 ################################################################################
-- 
1.5.6.5


Reply to: