mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 18:50:11 +02:00
Hotfix for 7b68b90569
- don't cal .split() on None
This commit is contained in:
parent
7b68b90569
commit
7b2f7077bc
@ -832,17 +832,19 @@ def make_index(apps, sortedids, apks, repodir, archive, categories):
|
||||
addElement('marketversion', app['Current Version'], doc, apel)
|
||||
addElement('marketvercode', app['Current Version Code'], doc, apel)
|
||||
|
||||
af = app['AntiFeatures'].split(',')
|
||||
# TODO: Temporarily not including UpstreamNonFree in the index,
|
||||
# because current F-Droid clients do not understand it, and also
|
||||
# look ugly when they encounter an unknown antifeature. This
|
||||
# filtering can be removed in time...
|
||||
if 'UpstreamNonFree' in af:
|
||||
af.remove('UpstreamNonFree')
|
||||
if af:
|
||||
addElement('antifeatures', ','.join(af), doc, apel)
|
||||
pv = app['Provides'].split(',')
|
||||
addElement('provides', ','.join(pv), doc, apel)
|
||||
if app['AntiFeatures']:
|
||||
af = app['AntiFeatures'].split(',')
|
||||
# TODO: Temporarily not including UpstreamNonFree in the index,
|
||||
# because current F-Droid clients do not understand it, and also
|
||||
# look ugly when they encounter an unknown antifeature. This
|
||||
# filtering can be removed in time...
|
||||
if 'UpstreamNonFree' in af:
|
||||
af.remove('UpstreamNonFree')
|
||||
if af:
|
||||
addElement('antifeatures', ','.join(af), doc, apel)
|
||||
if app['Provides']:
|
||||
pv = app['Provides'].split(',')
|
||||
addElement('provides', ','.join(pv), doc, apel)
|
||||
if app['Requires Root']:
|
||||
addElement('requirements', 'root', doc, apel)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user