]> git.decadent.org.uk Git - dak.git/commitdiff
meh
authorJoerg Jaspert <joerg@debian.org>
Thu, 31 Dec 2009 09:32:47 +0000 (10:32 +0100)
committerJoerg Jaspert <joerg@debian.org>
Thu, 31 Dec 2009 09:32:47 +0000 (10:32 +0100)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
config/debian/common

index 913e0de84ed1be14e1c2a54a71a36fa91c77051f..c7c9c9077a4142826325e3eadca15cb853f43de5 100644 (file)
@@ -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)