Skip to content

Commit 4cd95f1

Browse files
committed
docs
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 7e95a90 commit 4cd95f1

File tree

1 file changed

+3
-0
lines changed
  • cyclonedx_py/_internal/utils

1 file changed

+3
-0
lines changed

cyclonedx_py/_internal/utils/cdx.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ def licenses_fixup(component: 'Component') -> None:
104104
Per CycloneDX spec, there must be EITHER one license expression OR multiple license id/name.
105105
If there is an expression, it is used and everything else is moved to evidences, so it is not lost.
106106
"""
107+
# hack for preventing expressions AND named licenses.
108+
# see https://github.com/CycloneDX/cyclonedx-python/issues/826
109+
# see https://github.com/CycloneDX/specification/issues/454
107110
licenses = list(component.licenses)
108111
lexp = find_LicenseExpression(licenses)
109112
if lexp is None:

0 commit comments

Comments
 (0)