From 5bb6a8a6549ab7f4bb2f208487388767d1d17474 Mon Sep 17 00:00:00 2001 From: cjwatson <> Date: Mon, 2 May 2005 17:52:56 -0800 Subject: [PATCH] [project @ 2005-05-02 18:52:56 by cjwatson] print helpful message for packages with no maintainer --- cgi/pkgreport.cgi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()}; -- 2.39.5