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:
parent
a1f51ebb4d
commit
b5c363b6c8
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user