chiark / gitweb /
make "Current Version Code" default to most recent APK
[fdroidserver.git] / fdroidserver / update.py
index bf264121709826ae01819193432795be3d02aa21..7c5f8e286f0867ea2cf83d8fe2d3ac652303928d 100644 (file)
@@ -1284,6 +1284,8 @@ def main():
             if app.Name is None:
                 app.Name = bestapk['name']
             app.icon = bestapk['icon'] if 'icon' in bestapk else None
+            if app.CurrentVersionCode is None:
+                app.CurrentVersionCode = str(bestver)
 
     # Sort the app list by name, then the web site doesn't have to by default.
     # (we had to wait until we'd scanned the apks to do this, because mostly the