X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcommon;h=c7c9c9077a4142826325e3eadca15cb853f43de5;hb=a78532e60380e5a7935f8e5f6760c430b05eba4f;hp=e796b89c2a7e5646223945840a6bbdfdcacca8ff;hpb=f425ea1ef661dd2ac005317fda58413f9ed69848;p=dak.git diff --git a/config/debian/common b/config/debian/common index e796b89c..c7c9c907 100644 --- a/config/debian/common +++ b/config/debian/common @@ -83,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/${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)