use Pod::Usage;
use File::stat;
+use List::Util qw(min);
=head1 NAME
if (-e "$indexdest/by-$i${suffix}.idx") {
system('cp','-a',"$indexdest/by-$i${suffix}.idx","$indexdest/by-$i${suffix}.idx.new") == 0
or die "Error creating the new index";
- my $stat = stat("$indexdest/by-$i${suffix}.idx");
+ my $stat = stat("$indexdest/by-$i${suffix}.idx") or die "Unable to stat $indexdest/by-$i${suffix}.idx";
$time = defined $time ? min($time,$stat->mtime) : $stat->mtime;
}
tie %{$index{$i}}, DB_File => "$indexdest/by-$i$suffix.idx.new",
for my $f (@list) {
print "Up to $cnt bugs...\n" if (++$cnt % 100 == 0 && $verbose);
- my $stat = stat($f);
+ my $stat = stat(getbugcomponent($f,'summary');
next if $stat->mtime < $time;
my $fdata = readbug($f, $initialdir);
for my $p (split /[\s,]+/, $fdata->{"package"}) {
rmtree("$gSpoolDir/mime.tmp",0,1);
$ndone++;
}
+
+
+system("$lib_path/gen-indices",'--quick') == 0 or print STDERR "gen-indices failed\n";
+
+if (@gPostProcessall) {
+ system @gPostProcessall == 0 or print STDERR "\@gPostProcessall failed: ".join(' ',@gPostProcessall)."\n";
+}
+
+
+
&unfilelock;
exit(0);