--- bin/import.pl 2007/06/10 19:20:59 155 +++ bin/import.pl 2007/06/10 20:16:30 158 @@ -19,27 +19,22 @@ Jifty->log->debug("Found import plugins: ", join(", ", @importers) ); -my $system_user = Grep::CurrentUser->superuser; -my $search = Grep::Search->new(); - foreach my $importer ( @importers ) { if ( $importer->can('import') ) { Jifty->log->info("importing with $importer"); - my $stats = $importer->import( $search ); + my $stats = $importer->import(); - Jifty->log->info( - ( $stats->{new} ? $stats->{new} . ' new' : '' ) . - ( $stats->{old} ? $stats->{old} . ' old' : '' ) . - ( $stats->{failure} ? ' with ' . $stats->{failure} . ' failures' : '' ) . - ' of total ' . $stats->{total} . ' pages with ' . $importer - ); + Jifty->log->info( join(" ", + ( $stats->{new} ? $stats->{new} . ' new' : '' ), + ( $stats->{old} ? $stats->{old} . ' old' : '' ) . ' pages', + ( $stats->{failure} ? 'with ' . $stats->{failure} . ' failures' : '' ), + 'of total ' . $stats->{total} . ' using ' . $importer, + ) ); } else { Jifty->log->error("importer $importer doesn't implement import"); } } -$search->finish; -