Skip to content

Commit

Permalink
Merge pull request #67 from sw360/66-capycli-reports-an-error-when-cr…
Browse files Browse the repository at this point in the history
…eating-an-sbom-from-sw360

feat: fix #66
  • Loading branch information
tngraf committed Apr 30, 2024
2 parents 8e5dcd8 + fd3f923 commit 2a2bf55
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@

# CaPyCli - Clearing Automation Python Command Line Tool for SW360

## NEXT

* Fixed an error when creating an SBOM from a project on SW360 when this project
contains a component with more than on package-url.

## 2.4.0 (2024-04-22)

* CaPyCLI is more resilient when accessing SW360.
Expand Down
2 changes: 1 addition & 1 deletion capycli/project/create_bom.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def create_project_bom(self, project: Dict[str, Any]) -> List[Component]:
if len(purls) > 1:
print_yellow(" Multiple purls added for", release["name"], release["version"])
print_yellow(" You must remove all but one in your SBOM!")
purl = " ".join(purls)
purl = " ".join(purls).strip()

if purl:
rel_item = Component(name=release["name"], version=release["version"],
Expand Down

0 comments on commit 2a2bf55

Please sign in to comment.