chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ac595e
)
Use app categories as wiki categories
author
Ciaran Gultnieks
<ciaran@ciarang.com>
Tue, 7 Jan 2014 13:39:48 +0000
(13:39 +0000)
committer
Ciaran Gultnieks
<ciaran@ciarang.com>
Tue, 7 Jan 2014 13:40:02 +0000
(13:40 +0000)
fdroidserver/update.py
patch
|
blob
|
history
diff --git
a/fdroidserver/update.py
b/fdroidserver/update.py
index 45d6ae5068aff56dc23492efbc57085649265974..e08f397a4c5c01ec6650219fc368019705be54d1 100644
(file)
--- 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...