X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fbackports%2Fcommon;h=5c488fffb614cb253e75c32cbeacc6da4ece8a53;hb=edf9c774f7d5b0148a30fd63bf1fa6bddf68d478;hp=2c7b76ba366b320a074dab046bc963480ae5b7a6;hpb=d11d0610cc3a8e8cfc4d987d8e5d6901195f5f4e;p=dak.git diff --git a/config/backports/common b/config/backports/common index 2c7b76ba..5c488fff 100644 --- a/config/backports/common +++ b/config/backports/common @@ -37,15 +37,6 @@ function wbtrigger() { # used by cron.dinstall *and* cron.unchecked. function make_buildd_dir () { dak manage-build-queues -a - - for dist in $(ls -1 ${incoming}/dists/); do - cd ${incoming}/dists/${dist} - mkdir -p tree/${STAMP} - cp -al ${incoming}/dists/${dist}/buildd/. tree/${STAMP}/ - ln -sfT tree/${STAMP} ${incoming}/dists/${dist}/current - find ./tree -mindepth 1 -maxdepth 1 -not -name "${STAMP}" -type d -print0 | xargs --no-run-if-empty -0 rm -rf - done - } # Do the unchecked processing, in case we have files. @@ -97,7 +88,13 @@ function reports() { dak queue-report | mail -e -s "NEW and BYHAND on $(date +%D)" team@backports.debian.org # and one on crufty packages log "Sending information about crufty packages" - dak cruft-report > $webdir/cruft-report-daily.txt -# dak cruft-report -s experimental >> $webdir/cruft-report-daily.txt + dak cruft-report -R > $webdir/cruft-report-daily.txt +# dak cruft-report -R -s experimental >> $webdir/cruft-report-daily.txt cat $webdir/cruft-report-daily.txt | mail -e -s "Debian archive cruft report for $(date +%D)" team@backports.debian.org } + +function pg_timestamp() { + tsname=${1:-"unknown"} + log "Saving postgres transaction id for ${tsname}" + psql -tAc 'select txid_current();' > $base/backup/txid_${tsname}_$(date +%Y.%m.%d-%H:%M:%S) +}