wam: Make our _info.cfg's look identical to the C++ client's

To achieve this, add the same leading comment section ("do no edit this
file", etc.) and use the same indentation format as the C++ engine, and
don't use quotes around the uploads attribute value (it's an integer).
This commit is contained in:
Ignacio R. Morelle 2014-02-20 23:42:36 -03:00
parent baa566161b
commit 80172ee58f

View file

@ -134,16 +134,20 @@ if __name__ == "__main__":
info = os.path.join(dirname, "_info.cfg")
try:
f = file(info, "w")
infowml = """[info]
version="%s"
uploads="%s"
dependencies="%s"
title="%s"
type="%s"
infowml = """#
# File automatically generated by Wesnoth to keep track
# of version information on installed add-ons. DO NOT EDIT!
#
[info]
\tdependencies="%s"
\ttitle="%s"
\ttype="%s"
\tuploads=%s
\tversion="%s"
[/info]
"""
f.write(infowml %
(version, uploads, dependencies, title, type))
(dependencies, title, type, uploads, version))
f.close()
except OSError:
pass