chiark / gitweb /
Can't update an app if there is no CV
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 17 Feb 2014 15:51:22 +0000 (16:51 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Mon, 17 Feb 2014 15:51:22 +0000 (16:51 +0100)
fdroidserver/update.py

index 262141607522277545310ce1142829d1300fdd24..9fa6fdd47ba2d4e23150cd1dd81b447f8c95bcfe 100644 (file)
@@ -141,6 +141,8 @@ def update_wiki(apps, apks):
                             'version': thisbuild['version'],
                             'buildproblem': "The build for this version appears to have failed. Check the [[{0}/lastbuild|build log]].".format(app['id'])
                         })
+        if app['Current Version Code'] == '0':
+            cantupdate = True
         # Sort with most recent first...
         apklist = sorted(apklist, key=lambda apk: apk['versioncode'], reverse=True)