[COMMIT LOGREPORT] service/all/lib/Lire ReportConfig.pm,1.34,1.35

Francis J. Lacoste flacoste at users.sourceforge.net
Mon Jul 25 17:03:50 CEST 2005


Update of /cvsroot/logreport/service/all/lib/Lire
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6068/all/lib/Lire

Modified Files:
	ReportConfig.pm 
Log Message:
Try to give a proper configuration to analysers called without a
persistent store. Thanks to Joost Bekkers for reporting this.


Index: ReportConfig.pm
===================================================================
RCS file: /cvsroot/logreport/service/all/lib/Lire/ReportConfig.pm,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- ReportConfig.pm	9 Jul 2004 23:06:16 -0000	1.34
+++ ReportConfig.pm	25 Jul 2005 15:03:48 -0000	1.35
@@ -633,10 +633,10 @@
         return;
     }
 
-    my $analyser = $analysers->[0];
-    my $process = new Lire::DlfAnalyserProcess( $store,
-                                                $analysers->[0]->name(),
-                                                {} );
+    my $analyser = $analysers->[0]->name();
+    my $cfg = Lire::Config->config_spec()->has_component( "${analyser}_properties") && Lire::Config->get( "${analyser}_properties" ) || '';
+
+    my $process = new Lire::DlfAnalyserProcess( $store, $analyser, $cfg );
     $process->run_analysis_job();
 
     return;

-- 
To UNSUBSCRIBE, email to commit-request at logreport.org with a subject of 
"unsubscribe". Trouble? Send an email with subject "help" to 
commit-request at logreport.org



More information about the Commit mailing list