X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcommon;h=a42c18ff9481be77fa36ec25a6904b416bc06450;hb=2102f8ab3938c63301686a88297c38fe8e8bfc08;hp=9fd9838359e9786c223d6111ef0a9aac12ec7684;hpb=46ed481d97efd2ca4d0914de1dd1393300cf21a5;p=dak.git 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"