mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
update: do not crash on screenshots without texts/graphics
`fdroid update` crashed for apps that only had screenshots but no graphics or localized texts because destdir was not being set in that case. This fixes that and adds a test case. closes #320 !286
This commit is contained in:
parent
e1d316a4bc
commit
d06f05e9c8
@ -716,6 +716,7 @@ def insert_localized_app_metadata(apps):
|
|||||||
logging.debug(packageName + ' does not have app metadata, skipping l18n scan.')
|
logging.debug(packageName + ' does not have app metadata, skipping l18n scan.')
|
||||||
continue
|
continue
|
||||||
locale = segments[-1]
|
locale = segments[-1]
|
||||||
|
destdir = os.path.join('repo', packageName, locale)
|
||||||
for f in files:
|
for f in files:
|
||||||
if f in ('description.txt', 'full_description.txt'):
|
if f in ('description.txt', 'full_description.txt'):
|
||||||
_set_localized_text_entry(apps[packageName], locale, 'description',
|
_set_localized_text_entry(apps[packageName], locale, 'description',
|
||||||
|
Binary file not shown.
After Width: | Height: | Size: 126 KiB |
Binary file not shown.
After Width: | Height: | Size: 165 KiB |
Loading…
Reference in New Issue
Block a user