chiark / gitweb /
Only add AF xml element if there actually are AFs
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 23 Dec 2013 11:04:50 +0000 (12:04 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 9 Jan 2014 15:23:47 +0000 (16:23 +0100)
fdroidserver/update.py

index 7d7612129cfce036c532cf37d85fad41494798de..2446f8523eab6b1ce647fc4e8c7ca2850ca51bc6 100644 (file)
@@ -578,7 +578,8 @@ def make_index(apps, apks, repodir, archive, categories):
             # filtering can be removed in time...
             if 'UpstreamNonFree' in af:
                 af.remove('UpstreamNonFree')
-            addElement('antifeatures', ','.join(af), doc, apel)
+            if af:
+                addElement('antifeatures', ','.join(af), doc, apel)
         if app['Requires Root']:
             addElement('requirements', 'root', doc, apel)