Skip to content

Commit

Permalink
removed testing prints
Browse files Browse the repository at this point in the history
  • Loading branch information
cschneemann committed May 3, 2024
1 parent 1192444 commit 57f5ca5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions generate_sbom
Original file line number Diff line number Diff line change
Expand Up @@ -278,14 +278,12 @@ sub read_pkgs_rpmdb {

sub spdx_license_mapping {
my ($mappingfile) = @_;
print ("mappingfile: ", $mappingfile, "\n");
# read in file, format:
# "license in file"=>"license in spdx"
my %license_mapping;
local *F;
if (open(F, '<', $mappingfile)) {
while(<F>) {
print $_, "\n";
next if $_ =~ /^\s*#/;
if ($_ =~ /^"(.*)"=>"(.*)"$/ ) {
$license_mapping{$1} = $2;
Expand All @@ -312,7 +310,7 @@ sub map_license {
} elsif (defined $license_mapping->{$license}) {
$license = $license_mapping->{$license};
} else {
warn("License not found in mapping: $license\n");
warn("SPDX-License-Mapping: License not found in mapping: $license\n");
}
return $license;
}
Expand Down

0 comments on commit 57f5ca5

Please sign in to comment.