X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcommon;h=6730889db1805c81f23b7108f7896d089db35a83;hb=eda055bcb6f842deb19a635965a143047c85b010;hp=43bd1bd0271df9c1d1d74e76e53b7dca2259a348;hpb=5631c321aad9d3275f125bd762dac8ea31a25a6f;p=dak.git diff --git a/config/debian/common b/config/debian/common index 43bd1bd0..6730889d 100644 --- a/config/debian/common +++ b/config/debian/common @@ -1,3 +1,4 @@ +# -*- mode:sh -*- # log something (basically echo it together with a timestamp) # # Set $PROGRAM to a string to have it added to the output. @@ -82,6 +83,10 @@ function do_newstage () { function sync_debbugs () { # sync with debbugs echo "--" >> $report + timestamp=$(date "+%Y-%m-%d-%H:%M") + mkdir -p $queuedir/${timestamp} + rsync -aq $queuedir/bts_version_track/ $queuedir/bts_version_track_archive/${timestamp} + rmdir --ignore-fail-on-non-empty $queuedir/${timestamp} # remove if empty. rsync -aq -e "ssh -o Batchmode=yes -o ConnectTimeout=30 -o SetupTimeout=30" --remove-source-files $queuedir/bts_version_track/ bugs-sync:/org/bugs.debian.org/versions/queue/ftp-master/ 2>/dev/null && touch $lockdir/synced_bts_version || true NOW=$(date +%s) TSTAMP=$(stat -c %Y $lockdir/synced_bts_version)