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 2006/11/28 15:09:12 UTC

svn commit: r480050 - /spamassassin/trunk/masses/rule-qa/automc/gen_info_xml

Author: jm
Date: Tue Nov 28 06:09:11 2006
New Revision: 480050

URL: http://svn.apache.org/viewvc?view=rev&rev=480050
Log:
always rewrite the fastinfo.xml file; the input file list gradually builds up over multiple runs

Modified:
    spamassassin/trunk/masses/rule-qa/automc/gen_info_xml

Modified: spamassassin/trunk/masses/rule-qa/automc/gen_info_xml
URL: http://svn.apache.org/viewvc/spamassassin/trunk/masses/rule-qa/automc/gen_info_xml?view=diff&rev=480050&r1=480049&r2=480050
==============================================================================
--- spamassassin/trunk/masses/rule-qa/automc/gen_info_xml (original)
+++ spamassassin/trunk/masses/rule-qa/automc/gen_info_xml Tue Nov 28 06:09:11 2006
@@ -42,7 +42,8 @@
   my $fastinfo = get_fastinfo($dr, $drdir);
   if (!defined $fastinfo) { next; }
 
-  if (!-e "$drdir/fastinfo.xml" || -s "$drdir/fastinfo.xml" == 0) {
+# always rewrite
+  {
     open (OUT, ">$drdir/fastinfo.xml") or die "cannot write $drdir/fastinfo.xml";
     print OUT $fastinfo;
     close OUT or die "failed to write to $drdir/fastinfo.xml";