language = sys.argv[1]
-
root = Element("index")
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"))
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):