* add hook to bail out of update_spamassassin when alioth is broken
authorDon Armstrong <don@debian.org>
Sat, 18 Dec 2010 10:07:51 +0000 (10:07 +0000)
committerDon Armstrong <don@debian.org>
Sat, 18 Dec 2010 10:07:51 +0000 (10:07 +0000)
git-svn-id: svn+ssh://svn.debian.org/svn/pkg-listmaster/trunk/spamassassin_config@350 0b7a5b0c-1f2c-0410-bd74-c376f8064c91

update_spamassassin

index f699d89..b9b29a0 100755 (executable)
@@ -23,6 +23,13 @@ fi;
 SACONFIG="$BASEDIR/spamassassin_config";
 BAKDIR="$BASEDIR/spamassassin_config_bak";
 
+# because alioth continuously fails, make sure that svn info will
+# succeed first before cluttering the log. Ideally we would report
+# this error, but it happens far to frequently, so we bail out here.
+if ! svn info $(svn info $SACONFIG|awk '/^URL:/{print $2}') >/dev/null 2>&1; then
+    exit 0;
+fi;
+
 # figure out if there's an update to be made
 ORIGREV=$(svn info $SACONFIG |awk '/^Revision:/{print $2}')
 NEWREV=$(svn info $(svn info $SACONFIG|awk '/^URL:/{print $2}')|awk '/^Revision:/{print $2}')