X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fbackports%2Fcommon;h=dd9876a7025236f11ec173378f881a98459f5ac8;hb=077bf03c4495465e28388f52e471877b7afa821a;hp=be0bd4ccb6b69651110273604f393ee1b1f97949;hpb=f992f1f8359ef388145bca41735e4ed91d835258;p=dak.git diff --git a/config/backports/common b/config/backports/common index be0bd4cc..dd9876a7 100644 --- a/config/backports/common +++ b/config/backports/common @@ -90,3 +90,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) +}