License check: Recognize license keywords (fixes #5812) (#5815)

This commit is contained in:
Raphael Michel
2026-01-16 15:33:03 +01:00
committed by GitHub
parent 0259899e00
commit ca23f7ebc2

View File

@@ -188,6 +188,8 @@ class LicenseCheckView(StaffMemberRequiredMixin, FormView):
return None, None
try:
for k, v in pkg.metadata.items():
if k == "License-Expression":
license = v
if k == "License":
license = v
if k == "Home-page":