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/02/25 23:54:00 UTC

svn commit: r511648 - /spamassassin/trunk/sa-compile.raw

Author: jm
Date: Sun Feb 25 14:53:58 2007
New Revision: 511648

URL: http://svn.apache.org/viewvc?view=rev&rev=511648
Log:
bug 5340: sa-compile was complaining about being unable to write to the compiled-rules dir, incorrectly.  fix

Modified:
    spamassassin/trunk/sa-compile.raw

Modified: spamassassin/trunk/sa-compile.raw
URL: http://svn.apache.org/viewvc/spamassassin/trunk/sa-compile.raw?view=diff&rev=511648&r1=511647&r2=511648
==============================================================================
--- spamassassin/trunk/sa-compile.raw (original)
+++ spamassassin/trunk/sa-compile.raw Sun Feb 25 14:53:58 2007
@@ -145,7 +145,9 @@
 $spamtest->{bases_split_out_alternations} = 1;
 
 my $installdir = $spamtest->sed_path('__local_state_dir__/compiled/__version__');
-if (!-w $installdir && !defined $opt{'list'}) {
+if ((!defined $opt{'list'})
+        && -d $installdir && !-w $installdir)
+{
   die "sa-compile: cannot write to $installdir, aborting\n";
 }