From 70e89e32232a9f5644f8d0a5da17cc519b5c0aaf Mon Sep 17 00:00:00 2001 From: Daksha1611 Date: Fri, 11 Sep 2026 22:57:34 +0530 Subject: [PATCH] Remove unreachable duplicate LGPL key in rubygems mapping #5314 LICENSES_MAPPING defined 'LGPL' on two consecutive lines, so the first entry was silently discarded and a bare LGPL declaration always resolved to lgpl-2.0-plus. Remove the unreachable line and keep the value that already applies, so the mapping is unchanged at runtime. Signed-off-by: Daksha1611 --- CHANGELOG.rst | 3 +++ src/packagedcode/rubygems.py | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index cf4db410925..d0ac790b18e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -10,6 +10,9 @@ Next release - Improve copyright detection for statements with parens or trailing "authors" +- Remove an unreachable duplicate ``LGPL`` key in the rubygems license mapping. + https://github.com/aboutcode-org/scancode-toolkit/issues/5314 + v33.0.0rc1 - 2026-05-14 ------------------------ diff --git a/src/packagedcode/rubygems.py b/src/packagedcode/rubygems.py index e80295c48af..fea048aa84d 100644 --- a/src/packagedcode/rubygems.py +++ b/src/packagedcode/rubygems.py @@ -676,7 +676,6 @@ def get_dependencies(dependencies): 'ISC': 'isc', 'LGPL-2.1+': 'lgpl-2.1-plus', 'LGPL-3': 'lgpl-3.0', - 'LGPL': 'lgpl', 'LGPL': 'lgpl-2.0-plus', 'LGPLv2.1+': 'lgpl-2.1-plus', 'MIT': 'mit',