chiark / gitweb /
Don't push UpstreamNonFree to index (yet)
authorCiaran Gultnieks <ciaran@ciarang.com>
Wed, 27 Nov 2013 10:39:36 +0000 (10:39 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Wed, 27 Nov 2013 10:39:36 +0000 (10:39 +0000)
fdroidserver/update.py

index c240b4053a4b1146fe00e9b0c565cb7c747eaec8..ed9476c83019a66cc83d66d0c21624378652d206 100644 (file)
@@ -570,7 +570,14 @@ def make_index(apps, apks, repodir, archive, categories):
         addElement('marketvercode', app['Current Version Code'], doc, apel)
 
         if app['AntiFeatures']:
-            addElement('antifeatures', app['AntiFeatures'], 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')
+            addElement('antifeatures', ','.join(af), doc, apel)
         if app['Requires Root']:
             addElement('requirements', 'root', doc, apel)