From afec880c81b58683bfa10680d95c68ae0408bd5f Mon Sep 17 00:00:00 2001 From: Ashutosh Gangwar Date: Sun, 30 Oct 2022 19:00:51 +0530 Subject: [PATCH] use default.txt as fallback changelog when inserting fastlane metadata --- fdroidserver/update.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fdroidserver/update.py b/fdroidserver/update.py index 1ed8a3a8..1bf20530 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -996,6 +996,12 @@ def insert_localized_app_metadata(apps): locale = segments[-2] _set_localized_text_entry(apps[packageName], locale, 'whatsNew', os.path.join(root, f)) + elif f == 'default.txt': + # use `default.txt` changelog entry as fallback. + localized = _get_localized_dict(apps[packageName], locale) + if not localized.get('whatsNew', ''): + _set_localized_text_entry(apps[packageName], locale, 'whatsNew', + os.path.join(root, f)) base, extension = common.get_extension(f)