1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

checkupdates --gplay: handle the case when Current Version is empty

Signed-off-by: Jean Privat <jean@pryen.org>
This commit is contained in:
Jean Privat 2014-01-15 10:21:48 -05:00
parent 0a34765461
commit 01c45a054d

View File

@ -314,7 +314,11 @@ def main():
print "%s encountered a problem: %s" % (common.getappname(app), reason)
if version is not None:
stored = app['Current Version']
if LooseVersion(stored) < LooseVersion(version):
if stored == '':
if options.verbose:
print "%s has no Current Version but has version %s on the Play Store" % (
common.getappname(app), version)
elif LooseVersion(stored) < LooseVersion(version):
print "%s has version %s on the Play Store, which is bigger than %s" % (
common.getappname(app), version, stored)
elif options.verbose: