From 3ecf0e437382d43e3f36ee9459900345e934b6d7 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Tue, 7 Jan 2014 13:39:48 +0000 Subject: [PATCH] Use app categories as wiki categories --- fdroidserver/update.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fdroidserver/update.py b/fdroidserver/update.py index 45d6ae50..e08f397a 100644 --- a/fdroidserver/update.py +++ b/fdroidserver/update.py @@ -187,6 +187,8 @@ def update_wiki(apps, apks): wikidata += '\n[[Category:Apps that are disabled]]\n' if app['Update Check Mode'] == 'None' and not app['Disabled']: wikidata += '\n[[Category:Apps with no update check]]\n' + for appcat in [c.strip() for c in app['Categories'].split(',')]: + wikidata += '\n[[Category:{0}]]\n'.format(appcat) # We can't have underscores in the page name, even if they're in # the package ID, because MediaWiki messes with them...