From 64a9bd1137a0d98c13da36ff8a22ceca53543bac Mon Sep 17 00:00:00 2001 From: Vishnu Varthan <166686421+Vishnu-Varthan1@users.noreply.github.com> Date: Tue, 16 Dec 2025 20:19:00 +0530 Subject: [PATCH] Fix outdated ScanCode license data base URL --- src/scancode/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scancode/api.py b/src/scancode/api.py index 94592e20ce1..66604eaaa05 100644 --- a/src/scancode/api.py +++ b/src/scancode/api.py @@ -142,7 +142,8 @@ def get_urls(location, threshold=50, **kwargs): SPDX_LICENSE_URL = 'https://spdx.org/licenses/{}' DEJACODE_LICENSE_URL = 'https://enterprise.dejacode.com/urn/urn:dje:license:{}' SCANCODE_LICENSEDB_URL = 'https://scancode-licensedb.aboutcode.org/{}' -SCANCODE_DATA_BASE_URL = 'https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data' +SCANCODE_DATA_BASE_URL = 'https://github.com/aboutcode-org/scancode-toolkit/tree/develop/src/licensedcode/data' + SCANCODE_LICENSE_URL = f'{SCANCODE_DATA_BASE_URL}/licenses/{{}}.LICENSE' SCANCODE_RULE_URL = f'{SCANCODE_DATA_BASE_URL}/rules/{{}}'