chiark / gitweb /
Better "No Source Since" wiki format
authorDaniel Martí <mvdan@mvdan.cc>
Sun, 19 May 2013 12:54:58 +0000 (14:54 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Sun, 19 May 2013 12:54:58 +0000 (14:54 +0200)
fdroidserver/update.py

index 8631e0457f47d7cc90005c52ea932a06b4fff46c..9cd6d166beffac520ec47d87696b82879190fd96 100644 (file)
@@ -101,9 +101,9 @@ def update_wiki(apps, apks, verbose=False):
             wikidata += "We don't have the current version of this app."
         else:
             wikidata += "We have the current version of this app."
-        if len(app['No Source Since']) > 0:
-            wikidata += "This application has been partially or entirely been missing source code since version " + app['No Source Since']
         wikidata += " (Check mode: " + app['Update Check Mode'] + ")\n\n"
+        if len(app['No Source Since']) > 0:
+            wikidata += "This application has been partially or entirely been missing source code since version " + app['No Source Since'] + "\n\n"
         if len(app['Current Version']) > 0:
             wikidata += "The current (recommended) version is " + app['Current Version']
             wikidata += " (version code " + app['Current Version Code'] + ").\n\n"
@@ -124,7 +124,7 @@ def update_wiki(apps, apks, verbose=False):
 
         wikidata += '\n[[Category:' + wikicat + ']]\n'
         if len(app['No Source Since']) > 0:
-            wikidata += '\n[[Category:Apps that are missing source code]]\n'
+            wikidata += '\n[[Category:Apps missing source code]]\n'
         elif validapks == 0 and not app['Disabled']:
             wikidata += '\n[[Category:Apps with no packages]]\n'
         elif cantupdate and not app['Disabled']: