Lines Matching refs:spdx
39 spdx = SPDXdata()
50 if lid in spdx.licenses:
53 spdx.licenses.append(lid)
57 spdx.exceptions[exception] = []
61 if not lic in spdx.licenses:
63 spdx.exceptions[exception].append(lic)
67 if not len(spdx.exceptions[exception]):
69 spdx.exception_files += 1
71 spdx.license_files += 1
73 return spdx
84 def __init__(self, spdx): argument
85 self.spdx = spdx
103 if not id in self.spdx.licenses:
107 if id not in self.spdx.exceptions:
109 if self.lastid not in self.spdx.exceptions[id]:
244 spdx = read_spdxdata(repo) variable
247 parser = id_parser(spdx)
281 sys.stderr.write('License files: %12d\n' %spdx.license_files)
282 sys.stderr.write('Exception files: %12d\n' %spdx.exception_files)
283 sys.stderr.write('License IDs %12d\n' %len(spdx.licenses))
284 sys.stderr.write('Exception IDs %12d\n' %len(spdx.exceptions))