@@ -146,7 +146,7 @@ sub _package_summary ($c, $id) {
146146 push @$actions , $entry ;
147147 }
148148
149- my (%docs , %lics , @package_files );
149+ my (%docs , %lics , @package_files , @legal_review_notices );
150150 for my $sub (@{$spec -> {sub } // []}) {
151151 my $entry = {
152152 file => $sub -> {file },
@@ -164,40 +164,42 @@ sub _package_summary ($c, $id) {
164164 for my $line (@{$sub -> {' %license' }}) {
165165 $lics {$_ } = 1 for split (/ / , $line );
166166 }
167+ push @legal_review_notices , @{$sub -> {' legal_review_notices' } // []};
167168 }
168169
169170 return {
170- actions => $actions ,
171- copied_files => {' %doc' => [sort keys %docs ], ' %license' => [sort keys %lics ]},
172- created => $pkg -> {created_epoch },
173- embargoed => \!!$pkg -> {embargoed },
174- ai_assisted => \!!$pkg -> {ai_assisted },
175- errors => $spec -> {errors } // [],
176- external_link => $pkg -> {external_link },
177- has_spdx_report => \!!$has_spdx_report ,
178- history => $history ,
179- id => $pkg -> {id },
180- notice => $pkg -> {notice },
181- package_checksum => $pkg -> {checkout_dir },
182- package_files => \@package_files ,
183- package_group => $group ,
184- package_license => {name => $package_license , spdx => \!!$normalized_license },
185- package_name => $pkg -> {name },
186- package_priority => $pkg -> {priority },
187- package_shortname => $shortname ,
188- package_summary => $summary ,
189- package_type => $type ,
190- package_url => $url ,
191- package_version => $version ,
192- products => $products ,
193- requests => $requests ,
194- result => $pkg -> {result },
195- reviewed => $pkg -> {reviewed_epoch },
196- reviewing_user => $pkg -> {login },
197- state => $pkg -> {state },
198- unpacked_files => $pkg -> {unpacked_files },
199- unpacked_size => humanize_bytes($pkg -> {unpacked_size } // 0),
200- warnings => $spec -> {warnings } // []
171+ actions => $actions ,
172+ copied_files => {' %doc' => [sort keys %docs ], ' %license' => [sort keys %lics ]},
173+ created => $pkg -> {created_epoch },
174+ embargoed => \!!$pkg -> {embargoed },
175+ ai_assisted => \!!$pkg -> {ai_assisted },
176+ errors => $spec -> {errors } // [],
177+ external_link => $pkg -> {external_link },
178+ has_spdx_report => \!!$has_spdx_report ,
179+ history => $history ,
180+ id => $pkg -> {id },
181+ legal_review_notices => \@legal_review_notices ,
182+ notice => $pkg -> {notice },
183+ package_checksum => $pkg -> {checkout_dir },
184+ package_files => \@package_files ,
185+ package_group => $group ,
186+ package_license => {name => $package_license , spdx => \!!$normalized_license },
187+ package_name => $pkg -> {name },
188+ package_priority => $pkg -> {priority },
189+ package_shortname => $shortname ,
190+ package_summary => $summary ,
191+ package_type => $type ,
192+ package_url => $url ,
193+ package_version => $version ,
194+ products => $products ,
195+ requests => $requests ,
196+ result => $pkg -> {result },
197+ reviewed => $pkg -> {reviewed_epoch },
198+ reviewing_user => $pkg -> {login },
199+ state => $pkg -> {state },
200+ unpacked_files => $pkg -> {unpacked_files },
201+ unpacked_size => humanize_bytes($pkg -> {unpacked_size } // 0),
202+ warnings => $spec -> {warnings } // []
201203 };
202204}
203205
0 commit comments