X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fdinstall.functions;h=751f3178362fca9f671bff848a0327a603981c69;hb=76f197bc13c6c094f9687f87b1c475330f3771fa;hp=e921563a7d9b31263855339c0a581ea376cc18b9;hpb=5631c321aad9d3275f125bd762dac8ea31a25a6f;p=dak.git diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions index e921563a..751f3178 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 -a 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" } @@ -541,6 +542,13 @@ function process_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). #