chiark / gitweb /
checkupdates: ignore tags where manifest doesn't exist
authorCiaran Gultnieks <ciaran@ciarang.com>
Thu, 21 Mar 2013 14:21:01 +0000 (14:21 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Thu, 21 Mar 2013 14:21:01 +0000 (14:21 +0000)
fdroidserver/checkupdates.py

index 8c313d503c78226fa4cd55e09c1708887bdc19bd..0242d325881ea214b14494865a2c11d0e3bb3aa9 100644 (file)
@@ -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)