mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 23:40:29 +03: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
1 changed files with 2 additions and 0 deletions
|
|
@ -783,6 +783,8 @@ def parse_metadata(metafile):
|
||||||
for build in thisinfo['builds']:
|
for build in thisinfo['builds']:
|
||||||
fill_build_defaults(build)
|
fill_build_defaults(build)
|
||||||
|
|
||||||
|
thisinfo['builds'] = sorted(thisinfo['builds'], key=lambda build: int(build['vercode']))
|
||||||
|
|
||||||
return (appid, thisinfo)
|
return (appid, thisinfo)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue