/[webpac2]/trunk/run.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/run.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 301 by dpavlin, Mon Dec 19 21:26:04 2005 UTC revision 307 by dpavlin, Tue Dec 20 00:03:04 2005 UTC
# Line 13  use WebPAC::Input 0.03; Line 13  use WebPAC::Input 0.03;
13  use WebPAC::Store 0.03;  use WebPAC::Store 0.03;
14  use WebPAC::Normalize::XML;  use WebPAC::Normalize::XML;
15  use WebPAC::Output::TT;  use WebPAC::Output::TT;
16  use WebPAC::Output::Estraier 0.05;  use WebPAC::Output::Estraier 0.08;
17  use YAML qw/LoadFile/;  use YAML qw/LoadFile/;
18  use Getopt::Long;  use Getopt::Long;
19  use File::Path;  use File::Path;
# Line 81  while (my ($database, $db_config) = each Line 81  while (my ($database, $db_config) = each
81    
82          my $est_config = $config->{hyperestraier} || $log->logdie("can't find 'hyperestraier' part in confguration");          my $est_config = $config->{hyperestraier} || $log->logdie("can't find 'hyperestraier' part in confguration");
83          $est_config->{database} = $database;          $est_config->{database} = $database;
84            $est_config->{clean} = $clean;
85    
86          my $est = new WebPAC::Output::Estraier(          my $est = new WebPAC::Output::Estraier( %{ $est_config } );
                 %{ $est_config },  
         );  
   
         if ($clean) {  
                 $log->warn("creating new empty index $database");  
                 $est->master( action => 'nodedel', name => $database );  
                 $est->master( action => 'nodeadd', name => $database, label => $database );  
         }  
87    
88          #          #
89          # now WebPAC::Store          # now WebPAC::Store

Legend:
Removed from v.301  
changed lines
  Added in v.307

  ViewVC Help
Powered by ViewVC 1.1.26