From: Joerg Jaspert Date: Mon, 20 Sep 2010 20:02:18 +0000 (+0200) Subject: Dont do the rest of sync_debbugs X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f992f1f8359ef388145bca41735e4ed91d835258;p=dak Dont do the rest of sync_debbugs Signed-off-by: Joerg Jaspert Signed-off-by: Joerg Jaspert --- 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 ))