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 2008/02/26 12:55:07 UTC

svn commit: r631186 - /spamassassin/trunk/masses/rule-qa/corpus-hourly

Author: jm
Date: Tue Feb 26 03:55:05 2008
New Revision: 631186

URL: http://svn.apache.org/viewvc?rev=631186&view=rev
Log:
delete output file when gzipping

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=631186&r1=631185&r2=631186&view=diff
==============================================================================
--- spamassassin/trunk/masses/rule-qa/corpus-hourly (original)
+++ spamassassin/trunk/masses/rule-qa/corpus-hourly Tue Feb 26 03:55:05 2008
@@ -510,7 +510,7 @@
     # compress for certain classes
     if ($class eq "OVERLAP") {
       $fname =~ s/'//gs;
-      system ("gzip '$fname'"); 
+      system ("rm '$fname.gz'; gzip '$fname'"); 
       # takes care of keeping the original around so we don't have to
       if ($? >> 8 != 0) { warn "gzip '$fname' failed"; }
     }