set_option("archive", $archive);
-my %status = getbugstatus($ref);
+my %status = getbugstatus($ref) or &quit("Couldn't get bug status: $!");
my $indexentry;
my $descriptivehead;
$descriptivehead= $indexentry.$submitted.";\nMaintainer for $status{package} is\n".
'<A href="http://'.$debbugs::gWebDomain.'/db/ma/l'.&maintencoded($tmaint).'.html">'.&sani($tmaint).'</A>.';
-my $buglog = buglog($ref, $archive);
-open L, "<$buglog" || &quit("open log for $ref: $!");
+my $buglog = buglog($ref);
+open L, "<$buglog" or &quit("open log for $ref: $!");
my $log='';
if $normstate eq 'go' || $normstate eq 'go-nox';
if ($normstate eq 'html') {
- $this .= " <em><A href=\"" . bugurl($ref, $archive, "msg=$xmessage") . "\">Full text</A> available.</em>";
+ $this .= " <em><A href=\"" . bugurl($ref, "msg=$xmessage") . "\">Full text</A> available.</em>";
}
my $show = 1;
sub allbugs {
my @bugs = ();
- opendir(D, "$debbugs::gSpoolDir/db") || &quit("opendir db: $!");
+ opendir(D, "$debbugs::gSpoolDir/db") or &quit("opendir db: $!");
@bugs = sort {$a<=>$b} grep s/\.status$//,
(grep m/^[0-9]+\.status$/,
(readdir(D)));
my $bugfunc = shift;
if ( $common_archive ) {
- open I, "<$debbugs::gSpoolDir/index.archive" || &quit("bugindex: $!");
+ open I, "<$debbugs::gSpoolDir/index.archive" or &quit("bugindex: $!");
} else {
- open I, "<$debbugs::gSpoolDir/index.db" || &quit("bugindex: $!");
+ open I, "<$debbugs::gSpoolDir/index.db" or &quit("bugindex: $!");
}
my @result = ();
sub pkgbugsindex {
my %descstr = ();
if ( $common_archive ) {
- open I, "<$debbugs::gSpoolDir/index.archive" || &quit("bugindex: $!");
+ open I, "<$debbugs::gSpoolDir/index.archive" or &quit("bugindex: $!");
} else {
- open I, "<$debbugs::gSpoolDir/index.db" || &quit("bugindex: $!");
+ open I, "<$debbugs::gSpoolDir/index.db" or &quit("bugindex: $!");
}
while(<I>) {
$descstr{ $1 } = 1 if (m/^(\S+)/);
sub getmaintainers {
my %maintainer;
- open(MM,"$gMaintainerFile") || &quit("open $gMaintainerFile: $!");
+ open(MM,"$gMaintainerFile") or &quit("open $gMaintainerFile: $!");
while(<MM>) {
- m/^(\S+)\s+(\S.*\S)\s*$/ || &quit("$gMaintainerFile: \`$_'");
+ m/^(\S+)\s+(\S.*\S)\s*$/ or &quit("$gMaintainerFile: \`$_'");
($a,$b)=($1,$2);
$a =~ y/A-Z/a-z/;
$maintainer{$a}= $b;
if ( $common_archive ) {
my $archdir = sprintf "%02d", $bugnum % 100;
- open(S,"$gSpoolDir/archive/$archdir/$bugnum.status" ) || return undef;
+ open(S,"$gSpoolDir/archive/$archdir/$bugnum.status" ) or return ();
} else {
- open(S,"$gSpoolDir/db/$bugnum.status") || return undef;
+ open(S,"$gSpoolDir/db/$bugnum.status") or return ();
}
my @lines = qw(originator date subject msgid package keywords done
forwarded mergedwith severity);