From f992f1f8359ef388145bca41735e4ed91d835258 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Mon, 20 Sep 2010 22:02:18 +0200 Subject: [PATCH] Dont do the rest of sync_debbugs Signed-off-by: Joerg Jaspert Signed-off-by: Joerg Jaspert --- config/backports/common | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/backports/common b/config/backports/common index dd60e13e..be0bd4cc 100644 --- a/config/backports/common +++ b/config/backports/common @@ -79,9 +79,10 @@ function sync_debbugs () { echo "--" >> $report timestamp=$(date "+%Y-%m-%d-%H:%M") mkdir -p $queuedir/bts_version_track_archive/${timestamp} - rsync -aq $queuedir/bts_version_track/ $queuedir/bts_version_track_archive/${timestamp} + rsync -aq --remove-source-files $queuedir/bts_version_track/ $queuedir/bts_version_track_archive/${timestamp} rmdir --ignore-fail-on-non-empty $queuedir/bts_version_track_archive/${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 + return 0 + 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) DIFF=$(( NOW - TSTAMP )) -- 2.39.5