--- trunk/bin/BackupPC_updatedb 2005/09/23 08:54:10 130 +++ trunk/bin/BackupPC_updatedb 2005/09/23 08:54:11 131 @@ -50,7 +50,7 @@ my %opt; -if ( !getopts("cdm:v:i", \%opt ) ) { +if ( !getopts("cdm:v:ij", \%opt ) ) { print STDERR <{'fid'} || die "no fid?"; my $uri = 'file:///' . $fid; - my $id = ($hest_db || $hest_node)->uri_to_id($uri); - next unless ($id == -1); + unless ($skip_check) { + my $id = ($hest_db || $hest_node)->uri_to_id($uri); + next unless ($id == -1); + } # create a document object my $doc = HyperEstraier::Document->new; @@ -247,11 +256,12 @@ ## update index ## -if (($opt{i} || ($index_path && ! -e $index_path)) && !$opt{c}) { +if (($opt{i} || $opt{j} || ($index_path && ! -e $index_path)) && !$opt{c}) { # update all print "force update of HyperEstraier index "; print "importing existing data" unless (-e $index_path); print "by -i flag" if ($opt{i}); + print "by -j flag" if ($opt{j}); print "\n"; hest_update(); }