chiark / gitweb /
Support "Category" field in metadata, export as <category> in index.xml.
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>
Wed, 22 Jun 2011 23:10:50 +0000 (02:10 +0300)
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>
Sat, 20 Aug 2011 18:32:28 +0000 (21:32 +0300)
common.py
update.py

index 7da4d5ffd079828a82754dc702b6fcff58cd9356..6bca52577cdf206c4cba3d79f98675b9959405a8 100644 (file)
--- a/common.py
+++ b/common.py
@@ -278,6 +278,8 @@ def parse_metadata(metafile, **kw):
                 thisinfo['source'] = value
             elif field == 'License':
                 thisinfo['license'] = value
+            elif field == 'Category':
+                thisinfo['category'] = value
             elif field == 'Web Site':
                 thisinfo['web'] = value
             elif field == 'Issue Tracker':
index 2d05ce717a395a83e7b7a15a72ce60f3031685ba..7a37ee7604e5f96db09b0a0a2117163733bcbf75 100755 (executable)
--- a/update.py
+++ b/update.py
@@ -314,6 +314,8 @@ for app in apps:
             addElement('icon', app['icon'], doc, apel)
             addElement('description', app['description'], doc, apel)
             addElement('license', app['license'], doc, apel)
+            if 'category' in app:
+                addElement('category', app['category'], doc, apel)
             addElement('web', app['web'], doc, apel)
             addElement('source', app['source'], doc, apel)
             addElement('tracker', app['tracker'], doc, apel)