From: Joerg Jaspert Date: Mon, 10 Nov 2008 21:26:16 +0000 (+0100) Subject: unchecked X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3248adf17c83c4a2cf3d7c7b60b6f538e6c0726;p=dak unchecked ignore ssh errors with rietz AKA bugs, but warn if they are there for more than three days. Signed-off-by: Joerg Jaspert --- diff --git a/ChangeLog b/ChangeLog index f0568930..5658b0e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2008-11-10 Joerg Jaspert + + * 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 * config/debian/cron.hourly: Create new tracefile format. diff --git a/config/debian/cron.unchecked b/config/debian/cron.unchecked index 406636ef..41b66401 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"