X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fbackports%2Fcommon;h=5c488fffb614cb253e75c32cbeacc6da4ece8a53;hb=4c6211d2717aab314dbb588cf37a5d998a1a3d85;hp=be0bd4ccb6b69651110273604f393ee1b1f97949;hpb=f992f1f8359ef388145bca41735e4ed91d835258;p=dak.git diff --git a/config/backports/common b/config/backports/common index be0bd4cc..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. @@ -90,3 +81,20 @@ function sync_debbugs () { log "Kids, you tried your best and you failed miserably. The lesson is, never try. (Homer Simpson)" fi } + +function reports() { + # Send a report on NEW/BYHAND packages + log "Nagging ftpteam about NEW/BYHAND packages" + 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 -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) +}