]> err.no Git - dak/commitdiff
better handling of that report file
authorJoerg Jaspert <joerg@debian.org>
Wed, 29 Apr 2009 22:47:47 +0000 (00:47 +0200)
committerJoerg Jaspert <joerg@debian.org>
Wed, 29 Apr 2009 22:47:47 +0000 (00:47 +0200)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
config/debian/common
config/debian/cron.unchecked

index 090f2ab7376eaa9186edf5bc7c69ed3a6969f4f6..f76fb95836f3058734953db4bd8f337fe407ab79 100644 (file)
@@ -72,13 +72,13 @@ function do_unchecked () {
     report=$queuedir/REPORT
     timestamp=$(date "+%Y-%m-%d %H:%M")
 
-    echo "$timestamp": "$changes"  >> $report
+    echo "$timestamp": ${changes:-"Nothing to do"}  >> $report
     dak process-unchecked -a -d "$unchecked" >> $report
-    echo "--" >> $report
 }
 
 function sync_debbugs () {
     # sync with debbugs
+    echo "--" >> $report
     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)
index 77b7d88fd0c0ebf27694e5db385baa4b2d0ce95f..cf9cd6e18e7e6e89ef1eb59c16822d06e01588e8 100755 (executable)
@@ -82,6 +82,4 @@ do_unchecked
 if [ ! -z "$changes" ]; then
     sync_debbugs
     do_buildd
-else
-    echo "$timestamp": Nothing to do >> $report
 fi