Skip to content

Commit db9f4ed

Browse files
committed
Add support to sync license language
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 64cffb6 commit db9f4ed

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

etc/scripts/licenses/synclic.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@ class DejaSource(ExternalLicensesSource):
523523
"category",
524524
"owner",
525525
"text_urls",
526+
"language",
526527
"osi_url",
527528
"faq_url",
528529
"other_urls",
@@ -668,7 +669,8 @@ def fetch_spdx_license_details(
668669
def patch_spdx_license(self, api_url, license_key, spdx_license_key):
669670
"""
670671
PATCH the DejaCode ``license_key`` to set the ``spdx_license_key``
671-
using the DejaCode API Raise an exception on failure.
672+
using the DejaCode API.
673+
Raise an exception on failure.
672674
"""
673675
headers = {
674676
"Authorization": f"Token {self.api_key}",
@@ -891,6 +893,7 @@ def license_to_dict(lico):
891893
name=lico.name,
892894
owner=lico.owner,
893895
is_exception=lico.is_exception,
896+
language=lico.language or "en",
894897
full_text=lico.text,
895898
spdx_license_key=lico.spdx_license_key,
896899
reference_notes=lico.notes,

0 commit comments

Comments
 (0)