X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcommon;h=61559515c04620b0b1c45f09ee6ba22a422ca0b3;hb=ebbb5c16d0a0ea9350bf1c139c8265dc2f470b6a;hp=f611c19e55b22dffe4ee5f60cdeee3805819d889;hpb=e8cd8223b1ba10c8b7231fb4f3e0f0c7049c30fe;p=dak.git diff --git a/config/debian/common b/config/debian/common index f611c19e..61559515 100644 --- a/config/debian/common +++ b/config/debian/common @@ -36,6 +36,8 @@ function make_buildd_dir () { dak manage-build-queues -a for dist in $(ls -1 ${incoming}/dists/); do + # Skip project trace directory + if [ "${dist}x" = "projectx" ]; then continue; fi cd ${incoming}/dists/${dist} mkdir -p tree/${STAMP} cp -al ${incoming}/dists/${dist}/buildd/. tree/${STAMP}/ @@ -104,3 +106,9 @@ function reports() { dak cruft-report -s experimental >> $webdir/cruft-report-daily.txt cat $webdir/cruft-report-daily.txt | mail -a "X-Debian: DAK" -e -s "Debian archive cruft report for $(date +%D)" ftpmaster@ftp-master.debian.org -- -F "Debian FTP Masters" -f ftpmaster@ftp-master.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) +}