From: Joerg Jaspert Date: Mon, 29 Nov 2010 08:22:37 +0000 (+0100) Subject: clean the debbugs version track archive X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=2102f8ab3938c63301686a88297c38fe8e8bfc08;p=dak.git clean the debbugs version track archive Signed-off-by: Joerg Jaspert --- 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 + ################################################################################