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 2007/08/28 13:33:51 UTC
svn commit: r570385 - /spamassassin/trunk/build/mkupdates/listpromotable
Author: jm
Date: Tue Aug 28 04:33:51 2007
New Revision: 570385
URL: http://svn.apache.org/viewvc?rev=570385&view=rev
Log:
automatically ignore cache if too old
Modified:
spamassassin/trunk/build/mkupdates/listpromotable
Modified: spamassassin/trunk/build/mkupdates/listpromotable
URL: http://svn.apache.org/viewvc/spamassassin/trunk/build/mkupdates/listpromotable?rev=570385&r1=570384&r2=570385&view=diff
==============================================================================
--- spamassassin/trunk/build/mkupdates/listpromotable (original)
+++ spamassassin/trunk/build/mkupdates/listpromotable Tue Aug 28 04:33:51 2007
@@ -36,7 +36,7 @@
my $url; # tracks the last day used
my $dayoffset = 0;
foreach my $day (@DAYS_REQUIRED) {
- if (!$FROM_CACHE || !-f $cache.$day) {
+ if (!$FROM_CACHE || !-f $cache.$day || (-M $cache.$day) > 0.5) {
with_new_offset:
$url = $cgi_url.($day+$dayoffset)."-days-ago?xml=1";