Skip to content

Commit

Permalink
more information on warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cschneemann committed May 14, 2024
1 parent 2c2ffed commit 08df9ce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generate_sbom
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ sub map_license {
} elsif (defined $license_mapping->{$license}) {
$license = $license_mapping->{$license};
} else {
warn("SPDX-License-Mapping: License for $pkg not found in mapping: $license\n");
warn("SPDX-License-Mapping: License for package $pkg not found in mapping: $license\n");
$license = "NOASSERTION";
}
if ( $license =~ /NOASSERTION/) {
Expand Down Expand Up @@ -849,6 +849,8 @@ if (@license_mapping_files > 0) {
my $href = spdx_license_mapping($toprocess . $mapping_file);
%$license_mapping = (%$license_mapping, %$href);
}
} else {
warn("No license mapping as JSON::XS is not available!");
}
}

Expand Down

0 comments on commit 08df9ce

Please sign in to comment.