1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

fix(make_readme): antifeatures_list content was modified by reference thus breaking translations

This commit is contained in:
Laurent Peuch 2024-03-07 00:39:38 +01:00 committed by OniriCorpe
parent 4ba2aa2d32
commit de84d12b89

View file

@ -4,6 +4,7 @@ import argparse
import json import json
import os import os
from pathlib import Path from pathlib import Path
from copy import deepcopy
import toml import toml
from jinja2 import Environment, FileSystemLoader from jinja2 import Environment, FileSystemLoader
@ -74,7 +75,7 @@ def generate_READMEs(app_path: str):
disclaimer = None disclaimer = None
# TODO: Add url to the documentation... and actually create that documentation :D # TODO: Add url to the documentation... and actually create that documentation :D
antifeatures = { a: antifeatures_list[a] for a in from_catalog.get('antifeatures', [])} antifeatures = { a: deepcopy(antifeatures_list[a]) for a in from_catalog.get('antifeatures', [])}
for k, v in antifeatures.items(): for k, v in antifeatures.items():
antifeatures[k]['title'] = value_for_lang(v['title'], lang) antifeatures[k]['title'] = value_for_lang(v['title'], lang)
if manifest.get("antifeatures", {}).get(k, None): if manifest.get("antifeatures", {}).get(k, None):