Mailing List Archive

svn commit: r433270 - /spamassassin/branches/3.1/masses/rule-qa/corpus-hourly
Author: jm
Date: Mon Aug 21 08:59:35 2006
New Revision: 433270

URL: http://svn.apache.org/viewvc?rev=433270&view=rev
Log:
bbmass/.corpus uses PWD in its tree path; ensure we're in masses subdir so that will work

Modified:
spamassassin/branches/3.1/masses/rule-qa/corpus-hourly

Modified: spamassassin/branches/3.1/masses/rule-qa/corpus-hourly
URL: http://svn.apache.org/viewvc/spamassassin/branches/3.1/masses/rule-qa/corpus-hourly?rev=433270&r1=433269&r2=433270&view=diff
==============================================================================
--- spamassassin/branches/3.1/masses/rule-qa/corpus-hourly (original)
+++ spamassassin/branches/3.1/masses/rule-qa/corpus-hourly Mon Aug 21 08:59:35 2006
@@ -509,8 +509,12 @@

my $dir = create_rulemetadata_dir($rev);

- chdir $opt{tree} or die "cannot chdir $opt{tree}";
- my $cmd = "./masses/rule-qa/get-rulemetadata-for-revision ".
+ # argh. this is silly; ~bbmass/.corpus specifies "$PWD" in its
+ # "tree" path, so we have to ensure we're in the 'masses' dir
+ # for this to work!
+ chdir "$opt{tree}/masses" or die "cannot chdir $opt{tree}/masses";
+
+ my $cmd = "$opt{tree}/masses/rule-qa/get-rulemetadata-for-revision ".
"--rev=$rev --outputdir='$dir'";

system($cmd);