mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 23:12:46 +03:00
checkupdates --gplay: handle the case when Current Version is empty
Signed-off-by: Jean Privat <jean@pryen.org>
This commit is contained in:
parent
0a34765461
commit
01c45a054d
1 changed files with 5 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue