Lines Matching refs:spdx
47 # Read the spdx data from the LICENSES directory
55 spdx = SPDXdata()
66 if lid in spdx.licenses:
69 spdx.licenses.append(lid)
73 spdx.exceptions[exception] = []
77 if not lic in spdx.licenses:
79 spdx.exceptions[exception].append(lic)
83 if not len(spdx.exceptions[exception]):
85 spdx.exception_files += 1
87 spdx.license_files += 1
89 return spdx
100 def __init__(self, spdx):
101 self.spdx = spdx
133 if not id in self.spdx.licenses:
137 if id not in self.spdx.exceptions:
139 if self.lastid not in self.spdx.exceptions[id]:
356 spdx = read_spdxdata(repo)
359 parser = id_parser(spdx)
410 sys.stderr.write('License files: %12d\n' %spdx.license_files)
411 sys.stderr.write('Exception files: %12d\n' %spdx.exception_files)
412 sys.stderr.write('License IDs %12d\n' %len(spdx.licenses))
413 sys.stderr.write('Exception IDs %12d\n' %len(spdx.exceptions))