Skip to content

Commit

Permalink
[backend] fix aggregation of sbom files for kiwi containers
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Feb 24, 2023
1 parent e6b8b86 commit 4473fab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/backend/BSSched/BuildJob/Aggregate.pm
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,14 @@ sub build {
# copy extra data like .packages or .basepackages
my $extraprefix = $containerinfofile;
$extraprefix =~ s/\.containerinfo//;
for my $extra ('.spdx.json', '.cdx.json') {
if (-e "$dir/$prefix$extraprefix$extra") {
BSUtil::cp("$dir/$prefix$extraprefix$extra", "$jobdatadir/$extraprefix$extra");
$jobbins{"$extraprefix$extra"} = 1;
}
}
$extraprefix =~ s/\.docker// unless -e "$dir/$prefix$extraprefix.packages";
for my $extra ('.basepackages', '.packages', '.report', '.verified', '.spdx.json', '.cdx.json') {
for my $extra ('.basepackages', '.packages', '.report', '.verified') {
if (-e "$dir/$prefix$extraprefix$extra") {
BSUtil::cp("$dir/$prefix$extraprefix$extra", "$jobdatadir/$extraprefix$extra");
$jobbins{"$extraprefix$extra"} = 1;
Expand Down

0 comments on commit 4473fab

Please sign in to comment.