summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cebcfe4)
sort bugs by number in rebuild
it's index.db.realtime, not index.db-h.realtime.
Debbugs spool directory; defaults to the value configured in the
debbugs configuration file.
Debbugs spool directory; defaults to the value configured in the
debbugs configuration file.
-my $file = "index.${initialdir}.realtime";
+my $fh_type = $initialdir;
+# if initaldir is db-h, the file is db.
+$fh_type = 'db' if $initialdir eq 'db-h';
+
+my $file = "index.${fh_type}.realtime";
my $idx_rebuild = IO::File->new($file.'.rebuild','w')
or die "Couldn't open ${file}.rebuild: $!";
my $idx_rebuild = IO::File->new($file.'.rebuild','w')
or die "Couldn't open ${file}.rebuild: $!";
}
}
binmode($idx_rebuild,':raw:encoding(UTF-8)');
}
}
binmode($idx_rebuild,':raw:encoding(UTF-8)');
-print {$idx_rebuild} $bugs{$_} foreach sort keys %bugs;
+print {$idx_rebuild} $bugs{$_} foreach sort {$a <=> $b} keys %bugs;
close($idx_rebuild);
rename("$file.rebuild", $file);
close($idx_rebuild);
rename("$file.rebuild", $file);