chiark / gitweb /
Set correct defaults for Binaries metadata field
authorCiaran Gultnieks <ciaran@ciarang.com>
Mon, 27 Oct 2014 17:21:04 +0000 (17:21 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Mon, 27 Oct 2014 17:21:04 +0000 (17:21 +0000)
fdroidserver/metadata.py
fdroidserver/publish.py

index 8d7e57b24957be6fd094fa527b1c72bd7e741fe7..979a01591cd6b37d7d480f31bd12cb24039d1a39 100644 (file)
@@ -57,7 +57,7 @@ app_defaults = OrderedDict([
     ('Requires Root', False),
     ('Repo Type', ''),
     ('Repo', ''),
-    ('Binaries', ''),
+    ('Binaries', None),
     ('Maintainer Notes', []),
     ('Archive Policy', None),
     ('Auto Update Mode', 'None'),
index 346a534ef6fcf57f68d16f7eb85fb2f39018adda..39f601c4f057ccc14fac25f5b4b51a8f996b5ee1 100644 (file)
@@ -119,7 +119,7 @@ def main():
             sys.exit(1)
         app = allapps[appid]
 
-        if 'Binaries' in app:
+        if app.get('Binaries', None):
 
             # It's an app where we build from source, and verify the apk
             # contents against a developer's binary, and then publish their