chiark / gitweb /
Also make the Tags UCM complain about unknown package id
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 3 Jul 2014 11:44:27 +0000 (13:44 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 3 Jul 2014 11:44:27 +0000 (13:44 +0200)
fdroidserver/checkupdates.py

index 6ab4e236156ec0c64e347c83361a8521998bcab9..292a495ef822996039a0090d008c76b311241ddf 100644 (file)
@@ -118,6 +118,7 @@ def check_tags(app, pattern):
         if flavour == 'yes':
             flavour = None
 
+        hpak = None
         htag = None
         hver = None
         hcode = "0"
@@ -144,10 +145,13 @@ def check_tags(app, pattern):
             logging.debug("Manifest exists. Found version {0} ({1})"
                           .format(version, vercode))
             if int(vercode) > int(hcode):
+                hpak = package
                 htag = tag
                 hcode = str(int(vercode))
                 hver = version
 
+        if not hpak:
+            return (None, "Couldn't find package ID", None)
         if hver:
             return (hver, hcode, htag)
         return (None, "Couldn't find any version information", None)