mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-09 02:41:06 +03:00
Hotfix for 7b68b90569
- don't cal .split() on None
This commit is contained in:
parent
7b68b90569
commit
7b2f7077bc
1 changed files with 13 additions and 11 deletions
|
@ -832,17 +832,19 @@ 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)
|
||||||
|
|
||||||
af = app['AntiFeatures'].split(',')
|
if app['AntiFeatures']:
|
||||||
# TODO: Temporarily not including UpstreamNonFree in the index,
|
af = app['AntiFeatures'].split(',')
|
||||||
# because current F-Droid clients do not understand it, and also
|
# TODO: Temporarily not including UpstreamNonFree in the index,
|
||||||
# look ugly when they encounter an unknown antifeature. This
|
# because current F-Droid clients do not understand it, and also
|
||||||
# filtering can be removed in time...
|
# look ugly when they encounter an unknown antifeature. This
|
||||||
if 'UpstreamNonFree' in af:
|
# filtering can be removed in time...
|
||||||
af.remove('UpstreamNonFree')
|
if 'UpstreamNonFree' in af:
|
||||||
if af:
|
af.remove('UpstreamNonFree')
|
||||||
addElement('antifeatures', ','.join(af), doc, apel)
|
if af:
|
||||||
pv = app['Provides'].split(',')
|
addElement('antifeatures', ','.join(af), doc, apel)
|
||||||
addElement('provides', ','.join(pv), doc, apel)
|
if app['Provides']:
|
||||||
|
pv = app['Provides'].split(',')
|
||||||
|
addElement('provides', ','.join(pv), doc, apel)
|
||||||
if app['Requires Root']:
|
if app['Requires Root']:
|
||||||
addElement('requirements', 'root', doc, apel)
|
addElement('requirements', 'root', doc, apel)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue