fix for absolute paths to HyperEstraier index (they probably should be absolute
[BackupPC.git] / bin / BackupPC_updatedb
index c714537..5360509 100755 (executable)
@@ -256,10 +256,10 @@ sub hest_update {
 
 
 ## update index ##
-if (($opt{i} || $opt{j} || ($index_path && ! -e $index_path)) && !$opt{c}) {
+if (($opt{i} || $opt{j} || ($index_path && ! -e $TopDir . $index_path)) && !$opt{c}) {
        # update all
        print "force update of HyperEstraier index ";
-       print "importing existing data" unless (-e $index_path);
+       print "importing existing data" unless (-e $TopDir . $index_path);
        print "by -i flag" if ($opt{i});
        print "by -j flag" if ($opt{j});
        print "\n";