Nice to have for query-pr-summary.cgi

Doug Barton DougB at FreeBSD.org
Mon Sep 1 13:50:15 PDT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Folks,

The current incarnation of query-pr-summary.cgi blanks the Resp. field
when it's freebsd-bugs. It would be nice to add that for ports-bugs too.
The attached patch should make that happen, although obviously it's
untested. Please let me know what you think.

Doug

- -- 

    This .signature sanitized for your protection

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/U7ECyIakK9Wy8PsRAlePAJ4h0+AUpzwMDGEIHjAtlOmk47w2LACgkXka
hKLmVSb5tlqPLVlORnrEQ+g=
=JIAc
-----END PGP SIGNATURE-----
-------------- next part --------------
Index: query-pr-summary.cgi
===================================================================
RCS file: /usr/local/ncvs/www/en/cgi/query-pr-summary.cgi,v
retrieving revision 1.39
diff -u -r1.39 query-pr-summary.cgi
--- query-pr-summary.cgi	6 Mar 2003 23:51:58 -0000	1.39
+++ query-pr-summary.cgi	1 Sep 2003 20:48:14 -0000
@@ -12,6 +12,7 @@
 $project       = "FreeBSD";
 $mail_prefix   = "freebsd-";
 $mail_unass    = "freebsd-bugs";
+$ports_unass   = 'ports-bugs';
 $closed_too    = 0;
 
 require "./cgi-lib.pl";
@@ -432,7 +433,7 @@
 	    $resp = &getline($_);
 	    $resp =~ s/@.*//;
 	    $resp =~ tr/A-Z/a-z/;
-	    $resp = "" if ($resp =~ /$mail_unass/);
+	    $resp = '' if (($resp =~ /$mail_unass/) or ($resp =~ /$ports_unass/));
 	    $resp =~ s/^$mail_prefix//;
 
 	} elsif (/>State:/) {


More information about the freebsd-www mailing list