Skip to content

Commit 12355c5

Browse files
dump sorted license data by key
Reference: aboutcode-org/scancode-licensedb#25 Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent 80d5491 commit 12355c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/licensedcode/license_db.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def generate(build_location, template_dir=TEMPLATES_DIR):
138138
loader=FileSystemLoader(template_dir),
139139
autoescape=True,
140140
)
141-
licenses = load_licenses(with_deprecated=True)
141+
licenses = dict(sorted(load_licenses(with_deprecated=True).items()))
142142

143143
root_path = pathlib.Path(build_location)
144144
root_path.mkdir(parents=False, exist_ok=True)

0 commit comments

Comments
 (0)