Skip to content

Commit

Permalink
generate_sbom: make files-section generation optional
Browse files Browse the repository at this point in the history
Introduced buildflag spdx-files-generation to control files-section generation in spdx format.
if set to no (spdx-files-generation:no) no files-section will be added in spdx format.
  • Loading branch information
cschneemann committed Mar 28, 2024
1 parent e88d09f commit ce13f17
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions generate_sbom
Original file line number Diff line number Diff line change
Expand Up @@ -764,6 +764,9 @@ if ($isproduct) {
if (grep { $_ eq "debian" } @{$dist->{'id_like'}} or $dist->{'id'} eq "debian" ) {
$pkgtype = "deb";
$pkgs = read_pkgs_deb($toprocess, $vendorstring);
if (queryconfig('buildflags', 'spdx-files-generation') ne "no") {
$files = gen_filelist($toprocess) if $format eq 'spdx';
}
} else {
$pkgtype = "rpm";
dump_rpmdb($toprocess, "$tmpdir/rpmdb");
Expand Down

0 comments on commit ce13f17

Please sign in to comment.