chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1f51eb
)
Sort builds by vercode when reading them
author
Daniel Martí
<mvdan@mvdan.cc>
Sat, 30 Aug 2014 22:21:29 +0000
(
00:21
+0200)
committer
Daniel Martí
<mvdan@mvdan.cc>
Sat, 30 Aug 2014 22:21:29 +0000
(
00:21
+0200)
Then, when written, the order will be enforced.
fdroidserver/metadata.py
patch
|
blob
|
history
diff --git
a/fdroidserver/metadata.py
b/fdroidserver/metadata.py
index c2d7dcb07983138f083097deaee9272e2ae8fc7c..77ee09c8d55b4ced72ab8d664c740e7347337fe3 100644
(file)
--- a/
fdroidserver/metadata.py
+++ b/
fdroidserver/metadata.py
@@
-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)