--- trunk/scripts/est-spider 2006/04/17 10:34:14 120 +++ trunk/scripts/est-spider 2006/08/15 16:38:06 178 @@ -89,6 +89,11 @@ my $dur = (time() - $start_t) || 1; printf STDERR "%d documents in %.2fs [%.2f docs/s]\n", $docs, $dur, ($docs / $dur); +$db->master( + action => 'sync' +); + + exit; sub dump_contents { @@ -195,6 +200,7 @@ my $contents; return if (! $force && -l $path || $path =~ m#/.svn# || $path =~ m/(~|.bak|.gif)$/); + return if (! $all && -d $path); my $mtime = (stat($path))[9] || -1; my $mtime_db = eval { $db->get_doc_attr_by_uri("file:///$path", '@mtime') };