From: Ciaran Gultnieks Date: Thu, 21 Mar 2013 14:21:01 +0000 (+0000) Subject: checkupdates: ignore tags where manifest doesn't exist X-Git-Tag: 0.1~667 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=cf1ff3a0da190f869515bb5862e90cb6e5dc1807;p=fdroidserver.git checkupdates: ignore tags where manifest doesn't exist --- diff --git a/fdroidserver/checkupdates.py b/fdroidserver/checkupdates.py index 8c313d50..0242d325 100644 --- a/fdroidserver/checkupdates.py +++ b/fdroidserver/checkupdates.py @@ -66,11 +66,13 @@ def check_tags(app, sdk_path): for tag in vcs.gettags(): vcs.gotorevision(tag) - version, vercode, package = common.parse_androidmanifest(manifest) - if package and package == app['id'] and version and vercode: - if int(vercode) > int(hcode): - hcode = str(int(vercode)) - hver = version + # Only process tags where the manifest exists... + if os.path.exists(manifest): + version, vercode, package = common.parse_androidmanifest(manifest) + if package and package == app['id'] and version and vercode: + if int(vercode) > int(hcode): + hcode = str(int(vercode)) + hver = version if hver: return (hver, hcode)