X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.dinstall;h=edd6f6c6f13c2e3cb851d07b0f3b9a72b633139c;hb=3657c94c57960067451d2ab42b92dc6d5acfa656;hp=332aa036f551132ec85db9ece6e2144d496ed8c9;hpb=fb02caf3d7bf4617d6449ddd918788224ef3b040;p=dak.git diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall index 332aa036..edd6f6c6 100755 --- a/config/debian/cron.dinstall +++ b/config/debian/cron.dinstall @@ -354,12 +354,12 @@ function compress() { cd $base/backup/ find -maxdepth 1 -mindepth 1 -type f -name 'dump_pre_*' -mtime +2 -print0 | xargs -0 --no-run-if-empty rm - find -maxdepth 1 -mindepth 1 -type f -name 'dump_*' \! -name '*.bz2' \! -name '*.gz' -mmin 720 | + find -maxdepth 1 -mindepth 1 -type f -name 'dump_*' \! -name '*.bz2' \! -name '*.gz' -mmin +720 | while read dumpname; do echo "Compressing $dumpname" bzip2 -9v "$dumpname" done - find -maxdepth 1 -mindepth 1 -type f -name "dumpall_*" \! -name '*.bz2' \! -name '*.gz' -mmin 720 | + find -maxdepth 1 -mindepth 1 -type f -name "dumpall_*" \! -name '*.bz2' \! -name '*.gz' -mmin +720 | while read dumpname; do echo "Compressing $dumpname" bzip2 -9v "$dumpname" @@ -400,6 +400,16 @@ function renamelogfile() { function testingsourcelist() { dak ls -s testing -f heidi -r .| egrep 'source$' > ${webdir}/testing.list } + +# do a last run of process-unchecked before dinstall is on. +function process_unchecked() { + log "Processing the unchecked queue" + acceptnew + UNCHECKED_WITHOUT_LOCK="-p" + do_unchecked + sync_debbugs +} + ######################################################################## ######################################################################## @@ -594,6 +604,15 @@ stage $GO lockfile "$LOCK_ACCEPTED" +GO=( + FUNC="process_unchecked" + TIME="" + ARGS="" + ERR="" +) +stage $GO + + GO=( FUNC="accepted" TIME="accepted"