Lines Matching full:doc
146 # 2) doc: Document object being described
147 def writeDocumentSPDX(f, doc): argument
148 spdx_normalized_name = _normalize_spdx_name(doc.cfg.name)
154 DocumentNamespace: {doc.cfg.namespace}
161 if len(doc.externalDocuments) > 0:
162 extDocs = list(doc.externalDocuments)
169 if len(doc.relationships) > 0:
170 for rln in doc.relationships:
175 for pkg in doc.pkgs.values():
179 if len(doc.customLicenseIDs) > 0:
180 for lic in sorted(list(doc.customLicenseIDs)):
187 # 2) doc: SPDX Document object to write
188 def writeSPDX(spdxPath, doc): argument
191 log.inf(f"Writing SPDX document {doc.cfg.name} to {spdxPath}")
193 writeDocumentSPDX(f, doc)
203 doc.myDocSHA1 = hashes[0]