From 2102f8ab3938c63301686a88297c38fe8e8bfc08 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Mon, 29 Nov 2010 09:22:37 +0100 Subject: [PATCH] clean the debbugs version track archive Signed-off-by: Joerg Jaspert --- config/debian/common | 7 +++++++ config/debian/cron.daily | 2 ++ 2 files changed, 9 insertions(+) diff --git a/config/debian/common b/config/debian/common index 9fd98383..a42c18ff 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 e4f25718..1ededd03 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 + ################################################################################ -- 2.39.2