Skip to content

Commit 6771cad

Browse files
add spdx2 document comment to spdx3 document instead of creation info
Signed-off-by: Armin Tänzer <armin.taenzer@tngtech.com>
1 parent c76a098 commit 6771cad

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/spdx_tools/spdx3/bump_from_spdx2/creation_info.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,13 @@ def bump_creation_info(spdx2_creation_info: Spdx2_CreationInfo, payload: Payload
3333
0,
3434
"part of licensing profile, " "https://github.com/spdx/spdx-3-model/issues/131",
3535
)
36-
document_comment = spdx2_creation_info.document_comment
3736
creation_info = CreationInfo(
3837
spec_version=Version("3.0.0"),
3938
created=spdx2_creation_info.created,
4039
created_by=[],
4140
created_using=[],
4241
profile=[ProfileIdentifier.CORE, ProfileIdentifier.SOFTWARE, ProfileIdentifier.LICENSING],
4342
data_license=spdx2_creation_info.data_license,
44-
comment=spdx2_creation_info.document_comment,
4543
)
4644

4745
# due to creators having a creation_info themselves which inherits from the document's one,
@@ -71,7 +69,7 @@ def bump_creation_info(spdx2_creation_info: Spdx2_CreationInfo, payload: Payload
7169
spdx_id=spdx_id,
7270
creation_info=creation_info,
7371
name=spdx2_creation_info.name,
74-
comment=document_comment,
72+
comment=spdx2_creation_info.document_comment,
7573
element=[],
7674
root_element=[spdx_id],
7775
imports=imports,

0 commit comments

Comments
 (0)