mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
checkupdates: ignore tags where manifest doesn't exist
This commit is contained in:
parent
d1647acc50
commit
cf1ff3a0da
1 changed files with 7 additions and 5 deletions
|
|
@ -66,11 +66,13 @@ def check_tags(app, sdk_path):
|
||||||
for tag in vcs.gettags():
|
for tag in vcs.gettags():
|
||||||
vcs.gotorevision(tag)
|
vcs.gotorevision(tag)
|
||||||
|
|
||||||
version, vercode, package = common.parse_androidmanifest(manifest)
|
# Only process tags where the manifest exists...
|
||||||
if package and package == app['id'] and version and vercode:
|
if os.path.exists(manifest):
|
||||||
if int(vercode) > int(hcode):
|
version, vercode, package = common.parse_androidmanifest(manifest)
|
||||||
hcode = str(int(vercode))
|
if package and package == app['id'] and version and vercode:
|
||||||
hver = version
|
if int(vercode) > int(hcode):
|
||||||
|
hcode = str(int(vercode))
|
||||||
|
hver = version
|
||||||
|
|
||||||
if hver:
|
if hver:
|
||||||
return (hver, hcode)
|
return (hver, hcode)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue