Skip to content

Commit

Permalink
fix: Ensure consistency of reference category for Package-Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyharrison committed Dec 10, 2024
1 parent fc6fa71 commit c5ec65a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib4sbom/spdx/spdx_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def generateTagPackageDetails(
]:
self.generateTag(
"ExternalRef",
reference[0] + " " + reference[1] + " " + reference[2],
reference[0].replace("_","-") + " " + reference[1] + " " + reference[2],
)

def generateJSONPackageDetails(
Expand Down Expand Up @@ -472,7 +472,7 @@ def generateJSONPackageDetails(
"OTHER",
]:
reference_data = dict()
reference_data["referenceCategory"] = reference[0]
reference_data["referenceCategory"] = reference[0].replace("_","-")
reference_data["referenceType"] = reference[1]
reference_data["referenceLocator"] = reference[2]
if "externalRefs" in component:
Expand Down

0 comments on commit c5ec65a

Please sign in to comment.