1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 22:40:12 +01:00

use default.txt as fallback changelog when inserting fastlane metadata

This commit is contained in:
Ashutosh Gangwar 2022-10-30 19:00:51 +05:30
parent a17627bffa
commit afec880c81
No known key found for this signature in database
GPG Key ID: 7B685151623928B5

View File

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