1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

Fix tests

This commit is contained in:
Daniel Martí 2015-12-03 11:16:27 +01:00
parent 97c991c4b6
commit c8cc054c8b

View File

@ -796,7 +796,7 @@ def sorted_builds(builds):
return sorted(builds, key=lambda build: int(build.vercode)) return sorted(builds, key=lambda build: int(build.vercode))
esc_newlines = re.compile('\\\\( |\\n)') esc_newlines = re.compile(r'\\( |\n)')
# This function uses __dict__ to be faster # This function uses __dict__ to be faster
@ -804,15 +804,14 @@ def post_metadata_parse(app):
for k, v in app.__dict__.iteritems(): for k, v in app.__dict__.iteritems():
if type(v) in (float, int): if type(v) in (float, int):
app.__dict__[f] = str(v) app.__dict__[k] = str(v)
for build in app.builds: for build in app.builds:
for k, v in app.__dict__.iteritems(): for k, v in build.__dict__.iteritems():
if type(v) in (float, int): if type(v) in (float, int):
build.__dict__[k] = str(v) build.__dict__[k] = str(v)
continue continue
ftype = flagtype(k) ftype = flagtype(k)
if ftype == 'script': if ftype == 'script':