From: cjwatson <> Date: Tue, 3 May 2005 01:52:56 +0000 (-0800) Subject: [project @ 2005-05-02 18:52:56 by cjwatson] X-Git-Tag: release/2.6.0~726 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5bb6a8a6549ab7f4bb2f208487388767d1d17474;p=debbugs.git [project @ 2005-05-02 18:52:56 by cjwatson] print helpful message for packages with no maintainer --- diff --git a/cgi/pkgreport.cgi b/cgi/pkgreport.cgi index 1955c4fd..0f5115a8 100755 --- a/cgi/pkgreport.cgi +++ b/cgi/pkgreport.cgi @@ -248,16 +248,18 @@ print "

" . "$debbugs::gProject$Archived $debbugs::gBug report logs: $title" my $showresult = 1; if (defined $pkg || defined $src) { + my $showpkg = (defined $pkg) ? $pkg : "source package $src"; my %maintainers = %{getmaintainers()}; my $maint = $pkg ? $maintainers{$pkg} : $maintainers{$src} ? $maintainers{$src} : undef; if (defined $maint) { print '

'; - my $showpkg = (defined $pkg) ? $pkg : "source package $src"; print htmlmaintlinks(sub { $_[0] == 1 ? "Maintainer for $showpkg is " : "Maintainers for $showpkg are " }, $maint); print ".

\n"; + } else { + print "

No maintainer for $showpkg. Please do not report new bugs against this package.

\n"; } if (defined $maint or @bugs) { my %pkgsrc = %{getpkgsrc()};