X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fdinstall.functions;h=751f3178362fca9f671bff848a0327a603981c69;hb=8a56905adff9b3a342e2aa8e82388216da1d25e5;hp=ddce96920c45b73add7b903c0612b1c03e2b9668;hpb=2eab0bd6bdd98ef816f78b74f85ca9fe5792804c;p=dak.git diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions index ddce9692..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" } @@ -129,9 +130,9 @@ function cruft() { dak check-overrides } -function msfl() { - log "Generating suite file lists for apt-ftparchive" - dak make-suite-file-list +function dominate() { + log "Removing obsolete source and binary associations" + dak dominate } function filelist() { @@ -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}" <