[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] unchecked



ignore ssh errors with rietz AKA bugs, but warn if they are there for more than three days.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
 ChangeLog                    |    6 ++++++
 config/debian/cron.unchecked |    9 ++++++++-
 2 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f056893..5658b0e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-11-10  Joerg Jaspert  <joerg@debian.org>
+
+	* config/debian/cron.unchecked: how about us ignoring bugs.d.o
+	down? It's not like it is time critical or something to transfer
+	this stuff, it doesn't hurt to have it there a bit later...
+
 2008-11-08  Joerg Jaspert  <joerg@debian.org>
 
 	* config/debian/cron.hourly: Create new tracefile format.
diff --git a/config/debian/cron.unchecked b/config/debian/cron.unchecked
index 406636e..41b6640 100755
--- a/config/debian/cron.unchecked
+++ b/config/debian/cron.unchecked
@@ -35,7 +35,14 @@ if lockfile -r3 $LOCKFILE; then
 	echo "--" >> $report
 
 	# sync with debbugs
-	rsync -aq --remove-source-files  $queuedir/bts_version_track/ bugs-sync:/org/bugs.debian.org/versions/queue/ftp-master/
+    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 ))
+	if [ $DIFF -ge 259200 ]; then
+		echo "Kids, you tried your best and you failed miserably. The lesson is, never try. (Homer Simpson)"
+	fi
 
 	if lockfile -r3 $NOTICE; then
 	    LOCKDAILY="YES"
-- 
1.5.6.5


Reply to: