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

Hotfix for 7b68b90569 - don't cal .split() on None

This commit is contained in:
Daniel Martí 2015-06-26 17:58:57 +02:00
parent 7b68b90569
commit 7b2f7077bc

View File

@ -832,6 +832,7 @@ def make_index(apps, sortedids, apks, repodir, archive, categories):
addElement('marketversion', app['Current Version'], doc, apel) addElement('marketversion', app['Current Version'], doc, apel)
addElement('marketvercode', app['Current Version Code'], doc, apel) addElement('marketvercode', app['Current Version Code'], doc, apel)
if app['AntiFeatures']:
af = app['AntiFeatures'].split(',') af = app['AntiFeatures'].split(',')
# TODO: Temporarily not including UpstreamNonFree in the index, # TODO: Temporarily not including UpstreamNonFree in the index,
# because current F-Droid clients do not understand it, and also # because current F-Droid clients do not understand it, and also
@ -841,6 +842,7 @@ def make_index(apps, sortedids, apks, repodir, archive, categories):
af.remove('UpstreamNonFree') af.remove('UpstreamNonFree')
if af: if af:
addElement('antifeatures', ','.join(af), doc, apel) addElement('antifeatures', ','.join(af), doc, apel)
if app['Provides']:
pv = app['Provides'].split(',') pv = app['Provides'].split(',')
addElement('provides', ','.join(pv), doc, apel) addElement('provides', ','.join(pv), doc, apel)
if app['Requires Root']: if app['Requires Root']: