diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/spdx.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/meta/lib/oe/spdx.py b/meta/lib/oe/spdx.py index 3f569c6862..9814fbfd66 100644 --- a/meta/lib/oe/spdx.py +++ b/meta/lib/oe/spdx.py | |||
@@ -189,6 +189,13 @@ class SPDXExternalDocumentRef(SPDXObject): | |||
189 | checksum = _Object(SPDXChecksum) | 189 | checksum = _Object(SPDXChecksum) |
190 | 190 | ||
191 | 191 | ||
192 | class SPDXExtractedLicensingInfo(SPDXObject): | ||
193 | name = _String() | ||
194 | comment = _String() | ||
195 | licenseId = _String() | ||
196 | extractedText = _String() | ||
197 | |||
198 | |||
192 | class SPDXDocument(SPDXObject): | 199 | class SPDXDocument(SPDXObject): |
193 | spdxVersion = _String(default="SPDX-" + SPDX_VERSION) | 200 | spdxVersion = _String(default="SPDX-" + SPDX_VERSION) |
194 | dataLicense = _String(default="CC0-1.0") | 201 | dataLicense = _String(default="CC0-1.0") |
@@ -200,6 +207,7 @@ class SPDXDocument(SPDXObject): | |||
200 | files = _ObjectList(SPDXFile) | 207 | files = _ObjectList(SPDXFile) |
201 | relationships = _ObjectList(SPDXRelationship) | 208 | relationships = _ObjectList(SPDXRelationship) |
202 | externalDocumentRefs = _ObjectList(SPDXExternalDocumentRef) | 209 | externalDocumentRefs = _ObjectList(SPDXExternalDocumentRef) |
210 | hasExtractedLicensingInfos = _ObjectList(SPDXExtractedLicensingInfo) | ||
203 | 211 | ||
204 | def __init__(self, **d): | 212 | def __init__(self, **d): |
205 | super().__init__(**d) | 213 | super().__init__(**d) |