You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jm...@apache.org on 2009/09/19 07:13:02 UTC
svn commit: r816853 - /spamassassin/trunk/sa-update.raw
Author: jm
Date: Sat Sep 19 05:13:01 2009
New Revision: 816853
URL: http://svn.apache.org/viewvc?rev=816853&view=rev
Log:
bug 5782: produce an error message if an sa-update channel doesn't exist
Modified:
spamassassin/trunk/sa-update.raw
Modified: spamassassin/trunk/sa-update.raw
URL: http://svn.apache.org/viewvc/spamassassin/trunk/sa-update.raw?rev=816853&r1=816852&r2=816853&view=diff
==============================================================================
--- spamassassin/trunk/sa-update.raw (original)
+++ spamassassin/trunk/sa-update.raw Sat Sep 19 05:13:01 2009
@@ -445,8 +445,13 @@
# Not getting a response isn't a failure, there may just not be any updates
# for this SA version yet.
- unless (defined $newV) {
- dbg("channel: no updates available, skipping channel");
+ if (!defined $newV) {
+ my @mirs = do_txt_query("mirrors.$channel");
+ if (defined shift @mirs) {
+ dbg("channel: no updates available, skipping channel");
+ } else {
+ channel_failed("channel: no 'mirrors.$channel' record found");
+ }
next;
}