module-info fix: first line must be "Version 0"

This commit is contained in:
Will Woods 2011-07-01 14:41:13 -04:00
parent 446c45c8e5
commit a8f627faab

View File

@ -187,6 +187,7 @@ def generate_module_info(moddir, outfile=None):
modinfo.append(dict(name=name, type=modtype, desc=desc))
out = open(outfile or joinpaths(moddir,"module-info"), "w")
out.write("Version 0\n")
for mod in sorted(modinfo, key=lambda m: m.get('name')):
out.write('{name}\n\t{type}\n\t"{desc:.65}"\n'.format(**mod))