From 03584a81e43972ce3224544af66bd7f5f5d885a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sun, 3 Jul 2022 16:29:12 +0200 Subject: [PATCH] Stop translating license for Fedora and EPEL The infrastracture to translate the license remains in place. We can remove it later, when all users are gone. I'm keeping the behaviour for Mageia unchanged for now. I assume that they'll want to follow the change in Fedora later too. We still want to do syntax cleanup with translate_slashes(). Fixes #193. --- rust2rpm/licensing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust2rpm/licensing.py b/rust2rpm/licensing.py index e5ea029..d109847 100644 --- a/rust2rpm/licensing.py +++ b/rust2rpm/licensing.py @@ -58,6 +58,6 @@ def translate_license_fedora(license): def translate_license(target, license): license = translate_slashes(license) - if target in {"fedora", "epel", "mageia"}: + if target in {"mageia"}: return translate_license_fedora(license) return license, None