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:
9017328
)
checkupdates: compare CVs as ints, not strs
author
Daniel Martí
<mvdan@mvdan.cc>
Mon, 26 Oct 2015 15:13:35 +0000
(16:13 +0100)
committer
Daniel Martí
<mvdan@mvdan.cc>
Mon, 26 Oct 2015 15:13:35 +0000
(16:13 +0100)
fdroidserver/checkupdates.py
patch
|
blob
|
history
diff --git
a/fdroidserver/checkupdates.py
b/fdroidserver/checkupdates.py
index 3a9abad05255940559b452ddf883248591d2c7a4..6705b90044d6e9e5d9c824cae5779ad227306509 100644
(file)
--- a/
fdroidserver/checkupdates.py
+++ b/
fdroidserver/checkupdates.py
@@
-462,7
+462,7
@@
def checkupdates_app(app, first=True):
gotcur = False
latest = None
for build in app['builds']:
gotcur = False
latest = None
for build in app['builds']:
- if
build['vercode'] >= app['Current Version Code']
:
+ if
int(build['vercode']) >= int(app['Current Version Code'])
:
gotcur = True
if not latest or int(build['vercode']) > int(latest['vercode']):
latest = build
gotcur = True
if not latest or int(build['vercode']) > int(latest['vercode']):
latest = build