From: Joerg Jaspert Date: Thu, 31 Dec 2009 09:32:47 +0000 (+0100) Subject: meh X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a78532e60380e5a7935f8e5f6760c430b05eba4f;p=dak meh Signed-off-by: Joerg Jaspert --- diff --git a/config/debian/common b/config/debian/common index 913e0de8..c7c9c907 100644 --- a/config/debian/common +++ b/config/debian/common @@ -83,11 +83,10 @@ 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 + 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)