1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-09 00:40:11 +01:00

Sort builds by vercode when reading them

Then, when written, the order will be enforced.
This commit is contained in:
Daniel Martí 2014-08-31 00:21:29 +02:00
parent a1f51ebb4d
commit b5c363b6c8

View File

@ -783,6 +783,8 @@ def parse_metadata(metafile):
for build in thisinfo['builds']:
fill_build_defaults(build)
thisinfo['builds'] = sorted(thisinfo['builds'], key=lambda build: int(build['vercode']))
return (appid, thisinfo)