normalize Build TYPE_STRING data based on .txt

Unfortunately, things like versionCode must be strings.  That should be
converted to be ints throughout.
This commit is contained in:
Hans-Christoph Steiner 2017-02-23 22:25:33 +01:00
parent c178cfb843
commit 593613043e
2 changed files with 68 additions and 66 deletions

View file

@ -827,6 +827,8 @@ def post_metadata_parse(app):
build[k] = ['yes']
else:
build[k] = []
elif flagtype(k) == TYPE_STRING and type(v) in (float, int):
build[k] = str(v)
builds.append(build)
if not app.get('Description'):