]> git.decadent.org.uk Git - dak.git/commitdiff
clean the debbugs version track archive
authorJoerg Jaspert <joerg@debian.org>
Mon, 29 Nov 2010 08:22:37 +0000 (09:22 +0100)
committerJoerg Jaspert <joerg@debian.org>
Mon, 29 Nov 2010 08:22:37 +0000 (09:22 +0100)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
config/debian/common
config/debian/cron.daily

index 9fd9838359e9786c223d6111ef0a9aac12ec7684..a42c18ff9481be77fa36ec25a6904b416bc06450 100644 (file)
@@ -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"
index e4f2571841a8faa5e9667bab6068ccb5fdfe9a9a..1ededd036545b2e7b7e89bfeb2f93a677976ec06 100755 (executable)
@@ -28,4 +28,6 @@ mv ${TMPFILE} /srv/ftp-master.debian.org/scripts/masterfiles/wnpp_rm
 
 reports
 
+clean_debbugs
+
 ################################################################################