mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-19 21:30:10 +01:00
use default.txt as fallback changelog when inserting fastlane metadata
This commit is contained in:
parent
a17627bffa
commit
afec880c81
@ -996,6 +996,12 @@ def insert_localized_app_metadata(apps):
|
|||||||
locale = segments[-2]
|
locale = segments[-2]
|
||||||
_set_localized_text_entry(apps[packageName], locale, 'whatsNew',
|
_set_localized_text_entry(apps[packageName], locale, 'whatsNew',
|
||||||
os.path.join(root, f))
|
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)
|
base, extension = common.get_extension(f)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user