--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: Bugs tagged fixed should have separate section in pkgreport.cgi
- From: Colin Watson <cjw44@flatline.org.uk>
- Date: Thu, 22 Feb 2001 00:36:51 +0000
- Message-id: <20010222003651.A11027@riva.ucam.org>
Package: bugs.debian.org
Version: N/A; reported 2001-02-22
Severity: normal
Tags: patch
Hi,
Now that da-katie is responding to NMU-fixed bugs by tagging them as
fixed rather than changing the severity, the BTS web pages should show
bugs with the fixed tag in a different section. It would be fantastic to
have this in time for the bugsquash party this weekend, so here's a
patch. I'm not sure if the description is right ("fixed in NMU"), since
people can set the fixed tag without doing an NMU; then again, they
could always set the severity too, so it's probably not a big deal.
You can see what this looks like at
http://master.debian.org/~cjwatson/bugs-sepfixed/pkgreport.cgi?pkg=<foo>.
--- /org/bugs.debian.org/cgi-bin/common.pl Tue Feb 20 03:54:48 2001
+++ common.pl Wed Feb 21 18:12:22 2001
@@ -209,6 +209,7 @@
my %section = ();
my %displayshowpending = ("pending", "outstanding",
+ "fixed", "fixed in NMU",
"done", "resolved",
"forwarded", "forwarded to upstream software authors");
@@ -255,7 +256,7 @@
my $result = "";
my $anydone = 0;
- foreach my $pending (qw(pending forwarded done)) {
+ foreach my $pending (qw(pending forwarded fixed done)) {
foreach my $severity(@debbugs::gSeverityList) {
$severity = $debbugs::gDefaultSeverity if ($severity eq '');
next unless defined $section{${pending} . "_" . ${severity}};
@@ -397,6 +398,7 @@
$status{"pending"} = 'pending';
$status{"pending"} = 'forwarded' if (length($status{"forwarded"}));
+ $status{"pending"} = 'fixed' if ($status{"tags"} =~ /\bfixed\b/);
$status{"pending"} = 'done' if (length($status{"done"}));
return %status;
Thanks,
--
Colin Watson [cjw44@flatline.org.uk]
-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux riva 2.4.0-test6 #1 Mon Jan 1 21:55:36 GMT 2001 i686
--- End Message ---