1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-11 23:23:27 +02:00

'nativecode' isn't always present

This commit is contained in:
Daniel Martí 2013-06-19 14:08:10 +02:00
parent 5551ba3d5e
commit 6b5d9abf0d

View File

@ -533,7 +533,7 @@ def make_index(apps, apks, repodir, archive, categories):
perms = ""
if len(apk['permissions']) > 0:
addElement('permissions', ','.join(apk['permissions']), doc, apkel)
if len(apk['nativecode']) > 0:
if 'nativecode' in apk and len(apk['nativecode']) > 0:
addElement('nativecode', ','.join(apk['nativecode']), doc, apkel)
if len(apk['features']) > 0:
addElement('features', ','.join(apk['features']), doc, apkel)