]> git.donarmstrong.com Git - debbugs.git/commitdiff
[project @ 2001-11-22 00:57:02 by doogie]
authordoogie <>
Thu, 22 Nov 2001 08:57:02 +0000 (00:57 -0800)
committerdoogie <>
Thu, 22 Nov 2001 08:57:02 +0000 (00:57 -0800)
When looking at the bugs for a source package, also include bugs filed on
the source package, not just on the binaries from the source package.

cgi/pkgreport.cgi

index 18c72e3f35ce3e1f02977a9367b169d57ba1d254..3fb8600cd6471ffef132ead8253071b6f4208a64 100755 (executable)
@@ -78,8 +78,9 @@ if (defined $pkg) {
   @bugs = @{getbugs(sub {my %d=@_; return $pkg eq $d{"pkg"}}, 'package', $pkg)};
 } elsif (defined $src) {
   $tag = "source $src";
-  my %pkgsrc = %{getpkgsrc()};
-  @bugs = @{getbugs(sub {my %d=@_; return $pkg eq $d{"pkg"}}, 'package', getsrcpkgs($src))};
+  my @pkgs = getsrcpkgs($src);
+  push @pkgs, $src if ( !grep(/^\Q$src\E$/, @pkgs) );
+  @bugs = @{getbugs(sub {my %d=@_; return $pkg eq $d{"pkg"}}, 'package', @pkgs)};
 } elsif (defined $maint) {
   my %maintainers = %{getmaintainers()};
   $tag = "maintainer $maint";