X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcommon;h=7dcd339b4f26cac6a00eb238ae5bfcc94b0dd429;hb=5390eff0ba7a732269f040b0a4c4a3b9a0db2733;hp=c6f1c2d264807639807ac443e7cde307de0f5dc3;hpb=f4b7c0f72e2338ac133bc096fe3f4c9fcb4b07fc;p=dak.git diff --git a/config/debian/common b/config/debian/common index c6f1c2d2..7dcd339b 100644 --- a/config/debian/common +++ b/config/debian/common @@ -36,7 +36,7 @@ function make_buildd_dir () { dak manage-build-queues -a dak generate-packages-sources2 -a build-queues dak generate-releases -a build-queues >/dev/null - ${scriptdir}/update-buildd-archive ${base}/build-queues ${incoming}/debian-buildd + ${scriptsdir}/update-buildd-archive ${base}/build-queues ${incoming}/debian-buildd for suite in unstable experimental; do rm -rf "$incoming/dists/$suite/buildd" @@ -138,7 +138,10 @@ function do_new () { log "Doing NEW processing" fi (dak process-policy new; dak process-policy byhand) | mail -a "X-Debian: DAK" -e -s "NEW and BYHAND processing" ftpmaster@ftp-master.debian.org -- -F "Debian FTP Masters" -f ftpmaster@ftp-master.debian.org - dak clean-suites -a new + + dak process-policy backports-new | mail -a "X-Debian: DAK" -e -s "NEW processing for backports-new" team@backports.debian.org -- -F "Debian FTP Masters" -f ftpmaster@ftp-master.debian.org + + dak clean-suites -a new,backports-new } function sync_debbugs () { @@ -180,3 +183,14 @@ function pg_timestamp() { log "Saving postgres transaction id for ${tsname}" psql -tAc 'select txid_current();' > $base/backup/txid_${tsname}_$(date +%Y.%m.%d-%H:%M:%S) } + +function get_archiveroot() { + local archivename="$1" + local query="SELECT path FROM archive WHERE name='${archivename}'" + local archiveroot="$(psql -tAc "${query}")" + if [ -z "${archiveroot}" ]; then + echo "get_archiveroot: couldn't get archiveroot for '${archivename}'" >&2 + return 1 + fi + echo "${archiveroot}" +}