You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by pd...@apache.org on 2019/06/02 10:28:00 UTC
svn commit: r1860510 - /spamassassin/trunk/masses/rule-qa/corpus-hourly
Author: pds
Date: Sun Jun 2 10:28:00 2019
New Revision: 1860510
URL: http://svn.apache.org/viewvc?rev=1860510&view=rev
Log:
Bug 7715 - fix rebuild logic
Modified:
spamassassin/trunk/masses/rule-qa/corpus-hourly
Modified: spamassassin/trunk/masses/rule-qa/corpus-hourly
URL: http://svn.apache.org/viewvc/spamassassin/trunk/masses/rule-qa/corpus-hourly?rev=1860510&r1=1860509&r2=1860510&view=diff
==============================================================================
--- spamassassin/trunk/masses/rule-qa/corpus-hourly (original)
+++ spamassassin/trunk/masses/rule-qa/corpus-hourly Sun Jun 2 10:28:00 2019
@@ -324,12 +324,12 @@ sub gen_class {
# now, if the target file already exists, check to see if it's newer
# than all the sources, make-style
if (-f $fname) {
- my $targetfreshness = (-M $fname) + (6*3600);
+ my $targetfreshness = (-M $fname);
my $needsrebuild = 0;
foreach my $srcfile (@spam, @ham) {
my $srcfreshness = (-M $srcfile);
- if ($targetfreshness > $srcfreshness) { # src is fresher
+ if (($srcfreshness-$targetfreshness) < 0.25) {
print "$fname is older than $srcfile: $targetfreshness > $srcfreshness\n";
$needsrebuild = 1;
last;