X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Debbugs%2FCGI%2FPkgreport.pm;h=060e980a9088cec144ef3fdb1e00d8c90550d67f;hb=53c435119200ab9b1c2538a96b8374c51a078855;hp=b7bd6a94974561a7a56553ed7ce0f475afa3e59d;hpb=0e8f07fda6e40b5967d9c6b28b3200db22766343;p=debbugs.git diff --git a/Debbugs/CGI/Pkgreport.pm b/Debbugs/CGI/Pkgreport.pm index b7bd6a9..060e980 100644 --- a/Debbugs/CGI/Pkgreport.pm +++ b/Debbugs/CGI/Pkgreport.pm @@ -143,8 +143,8 @@ sub generate_package_info{ push @references, sprintf "to the %s package page", html_escape("$config{package_pages}/$package"), html_escape("$package"); } - if (defined $config{subscription_domain} and - length $config{subscription_domain}) { + if (defined $config{package_tracking_domain} and + length $config{package_tracking_domain}) { my $ptslink = $param{binary} ? $srcforpkg : $package; # the pts only wants the source, and doesn't care about src: (#566089) $ptslink =~ s/^src://; @@ -301,6 +301,9 @@ sub pkg_htmlizebugs { dist => {type => SCALAR, optional => 1, }, + schema => {type => OBJECT, + optional => 1, + }, } ); my @bugs = @{$param{bugs}}; @@ -352,10 +355,10 @@ sub pkg_htmlizebugs { my $binary_to_source_cache = {}; foreach my $bug (@bugs) { - my %status = %{get_bug_status(bug=>$bug, - (exists $param{dist}?(dist => $param{dist}):()), - bugusertags => $param{bugusertags}, - (exists $param{version}?(version => $param{version}):()), + my %status = %{get_bug_status(bug=>$bug, + (map {exists $param{$_}?($_,$param{$_}):()} + qw(dist version schema bugusertags) + ), (exists $param{arch}?(arch => $param{arch}):(arch => $config{default_architectures})), binary_to_source_cache => $binary_to_source_cache, )};