chiark / gitweb /
Add wiki category for failing builds
authorCiaran Gultnieks <ciaran@ciarang.com>
Wed, 9 Oct 2013 08:57:00 +0000 (09:57 +0100)
committerCiaran Gultnieks <ciaran@ciarang.com>
Wed, 9 Oct 2013 08:57:00 +0000 (09:57 +0100)
fdroidserver/update.py

index ada4caeb020a531c9f14460bce7f40b72283bab3..03865e2c9f355bf51da3d65ed1d7a609bdb48588 100644 (file)
@@ -77,6 +77,7 @@ def update_wiki(apps, apks, verbose=False):
         apklist = []
         gotcurrentver = False
         cantupdate = False
+        buildfails = False
         for apk in apks:
             if apk['id'] == app['id']:
                 if str(apk['versioncode']) == app['Current Version Code']:
@@ -100,6 +101,7 @@ def update_wiki(apps, apks, verbose=False):
                         builtit = True
                         break
                 if not builtit:
+                    buildfails = True
                     apklist.append({
                             'versioncode': int(thisbuild['vercode']),
                             'version': thisbuild['version'],
@@ -144,6 +146,8 @@ def update_wiki(apps, apks, verbose=False):
             wikidata += '\n[[Category:Apps with no packages]]\n'
         elif cantupdate and not app['Disabled']:
             wikidata += "\n[[Category:Apps we can't update]]\n"
+        elif cantupdate and not app['Disabled']:
+            wikidata += "\n[[Category:Apps with failing builds]]\n"
         elif not gotcurrentver and not app['Disabled']:
             wikidata += '\n[[Category:Apps to Update]]\n'
         if app['Update Check Mode'] == 'None':