Merge commit 'origin/translations' into experimental
[enigma2.git] / tools / genmetaindex.py
old mode 100644 (file)
new mode 100755 (executable)
index 787a6f5..f7dc5b9
@@ -4,7 +4,6 @@ from xml.etree.ElementTree import ElementTree, Element
 
 language = sys.argv[1]
 
-
 root = Element("index")
 
 for file in sys.argv[2:]:
@@ -14,7 +13,6 @@ for file in sys.argv[2:]:
        package = Element("package")
        package.set("details", os.path.basename(file))
        
-       
        # we need all prerequisuited
        package.append(p.find("prerequisites"))
        
@@ -25,12 +23,13 @@ for file in sys.argv[2:]:
                        info = i
        assert info
        
-       
        for i in info[:]:
-               if i.tag not in ["name", "packagename", "shortdescription"]:
+               if i.tag not in ["name", "packagename", "packagetype", "shortdescription"]:
                        info.remove(i)
 
-       package.append(info)
+       for i in info[:]:
+               package.set(i.tag, i.text)
+
        root.append(package)
 
 def indent(elem, level=0):