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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-07-03 16:29:12 +02:00
parent 92edcce644
commit 03584a81e4

View file

@ -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