Lines Matching refs:spdx
38 spdx = SPDXdata()
49 if lid in spdx.licenses:
52 spdx.licenses.append(lid)
56 spdx.exceptions[exception] = []
60 if not lic in spdx.licenses:
62 spdx.exceptions[exception].append(lic)
66 if not len(spdx.exceptions[exception]):
68 spdx.exception_files += 1
70 spdx.license_files += 1
72 return spdx
83 def __init__(self, spdx): argument
84 self.spdx = spdx
102 if not id in self.spdx.licenses:
106 if id not in self.spdx.exceptions:
108 if self.lastid not in self.spdx.exceptions[id]:
234 spdx = read_spdxdata(repo) variable
237 parser = id_parser(spdx)
270 sys.stderr.write('License files: %12d\n' %spdx.license_files)
271 sys.stderr.write('Exception files: %12d\n' %spdx.exception_files)
272 sys.stderr.write('License IDs %12d\n' %len(spdx.licenses))
273 sys.stderr.write('Exception IDs %12d\n' %len(spdx.exceptions))