[Koha-patches] [PATCH] bug 2924 fixed rebuild_zebra.pl to work when export is skipped

Brian Harrington brians.listmail at gmail.com
Mon Mar 2 22:08:13 CET 2009


reindexing now occurs if there are $num_records_exported or if
$skip_export is set
---
 misc/migration_tools/rebuild_zebra.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/misc/migration_tools/rebuild_zebra.pl
b/misc/migration_tools/rebuild_zebra.pl
index 5e6d985..e6ad84e 100755
--- a/misc/migration_tools/rebuild_zebra.pl
+++ b/misc/migration_tools/rebuild_zebra.pl
@@ -209,7 +209,7 @@ sub index_records {
             if $num_records_exported;
     } else {
         do_indexing($record_type, 'update',
"$directory/$record_type", $reset, $noshadow, $record_fmt,
$zebraidx_log_opt)
-            if $num_records_exported;
+            if ($num_records_exported or $skip_export);
     }
 }

--
1.5.4.3



More information about the Koha-patches mailing list