X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=config%2Fdebian%2Fdinstall.functions;h=8f2dd81d0d783ef4aecb3517327dd103b16dd65e;hb=19af3d03e23510cc9fbfa376cb79082744c0a687;hp=26c1c8b8bd33c5a0fc30480468c82991cefbcd12;hpb=2df1ebdd5dc4423d8425311c0de28d5adfbc9fa8;p=dak.git diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions index 26c1c8b8..8f2dd81d 100644 --- a/config/debian/dinstall.functions +++ b/config/debian/dinstall.functions @@ -71,17 +71,18 @@ function updates() { # Process (oldstable)-proposed-updates "NEW" queue function punew_do() { - cd "${queuedir}/${1}" date -u -R >> REPORT - dak process-new -a -C COMMENTS >> REPORT || true + dak process-policy $1 | tee >> REPORT | mail -e -s "NEW changes in $1" debian-release@lists.debian.org echo >> REPORT } function punew() { log "Doing automated p-u-new processing" + cd "${queuedir}/p-u-new" punew_do "$1" } function opunew() { log "Doing automated o-p-u-new processing" + cd "${queuedir}/o-p-u-new" punew_do "$1" } @@ -392,11 +393,6 @@ function mirror() { rsync -aH --link-dest ${ftpdir} --delete --delete-after --ignore-errors ${ftpdir}/. . } -function wb() { - log "Trigger daily wanna-build run" - wbtrigger "daily" -} - function expire() { log "Expiring old database dumps..." cd $base/backup @@ -545,3 +541,25 @@ function process_unchecked() { do_unchecked sync_debbugs } + +# do a run of newstage only before dinstall is on. +function newstage() { + log "Processing the newstage queue" + UNCHECKED_WITHOUT_LOCK="-p" + do_newstage +} + +# Function to update a "statefile" telling people what we are doing +# (more or less). +# +# This should be called with the argument(s) +# - Status name we want to show. +# +function state() { + RIGHTNOW="$(date -u +"%a %b %d %T %Z %Y (%s)")" + cat >"${DINSTALLSTATE}" <