From dd9c0cd2026a72916a089739d4211a65ce6e12d5 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Wed, 30 Dec 2009 23:51:49 +0100 Subject: [PATCH] common archive the .versions files. either we or don are losing some of them. Signed-off-by: Joerg Jaspert --- config/debian/common | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/debian/common b/config/debian/common index e796b89c..913e0de8 100644 --- a/config/debian/common +++ b/config/debian/common @@ -83,6 +83,11 @@ function do_newstage () { function sync_debbugs () { # sync with debbugs echo "--" >> $report + if [ -f "$queuedir/bts_version_track/*.versions" ]; then + timestamp=$(date "+%Y-%m-%d-%H:%M") + mkdir -p $queuedir/${timestamp} + rsync -aq $queuedir/bts_version_track/ $queuedir/${timestamp} + fi 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) -- 2.39.2