- Allow # prefix on bug numbers in 'merge' command.
- Fix some ordering issues in old-style package pages and summaries.
- Add X-$gProject-PR-Message: headers to all mails sent by service.
+ - debbugsconfig creates required directories in $gSpoolDir
+ (closes: #222077).
* Adam Heath:
- Rewrite filtering in cgi's common.pl, to make it completely generic.
# published by the Free Software Foundation
use POSIX qw(strftime);
+use File::Path;
if (@ARGV) {
print STDOUT <<EOF;
&template("nextnumber", $gSpoolDir);
&touch("$gSpoolDir/index.archive.realtime");
&touch("$gSpoolDir/index.db.realtime");
+print "Creating directories in $gSpoolDir:\n";
+for my $num (0 .. 99) {
+ &spooldirectory(sprintf('archive/%02d', $num));
+ &spooldirectory(sprintf('db-h/%02d', $num));
+}
+print "\n";
# stuff used when testing (comment out the above)
#unshift @INC, "../";
}
}
+sub spooldirectory {
+ my $name = shift;
+ unless (-d "$gSpoolDir/$name") {
+ mkpath("$gSpoolDir/$name");
+ print "$name ";
+ }
+}
+
sub writefiles {
local ($html, $text, $name) = @_;
# first HTML