X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcommon;h=7dcd339b4f26cac6a00eb238ae5bfcc94b0dd429;hb=5390eff0ba7a732269f040b0a4c4a3b9a0db2733;hp=bb799fc1c163c58e6e132aabfaeabf664f8075bf;hpb=39b8c45908d67557fd371c1df4b11ad1bd8d251c;p=dak.git diff --git a/config/debian/common b/config/debian/common index bb799fc1..7dcd339b 100644 --- a/config/debian/common +++ b/config/debian/common @@ -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}" +}