mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-09 00:40:11 +01:00
Store build comments by vercode, not version
vercodes are unique, versions aren't
This commit is contained in:
parent
a544907bef
commit
67630b6c72
@ -663,7 +663,7 @@ def parse_metadata(metafile):
|
|||||||
.format(curbuild['version'], linedesc))
|
.format(curbuild['version'], linedesc))
|
||||||
|
|
||||||
thisinfo['builds'].append(curbuild)
|
thisinfo['builds'].append(curbuild)
|
||||||
add_comments('build:' + curbuild['version'])
|
add_comments('build:' + curbuild['vercode'])
|
||||||
mode = 0
|
mode = 0
|
||||||
else:
|
else:
|
||||||
if line.endswith('\\'):
|
if line.endswith('\\'):
|
||||||
@ -711,7 +711,7 @@ def parse_metadata(metafile):
|
|||||||
buildlines = [value[:-1]]
|
buildlines = [value[:-1]]
|
||||||
else:
|
else:
|
||||||
curbuild = parse_buildline([value])
|
curbuild = parse_buildline([value])
|
||||||
add_comments('build:' + thisinfo['builds'][-1]['version'])
|
add_comments('build:' + thisinfo['builds'][-1]['vercode'])
|
||||||
elif fieldtype == 'buildv2':
|
elif fieldtype == 'buildv2':
|
||||||
curbuild = {}
|
curbuild = {}
|
||||||
vv = value.split(',')
|
vv = value.split(',')
|
||||||
@ -742,7 +742,7 @@ def parse_metadata(metafile):
|
|||||||
buildlines.append(line)
|
buildlines.append(line)
|
||||||
curbuild = parse_buildline(buildlines)
|
curbuild = parse_buildline(buildlines)
|
||||||
thisinfo['builds'].append(curbuild)
|
thisinfo['builds'].append(curbuild)
|
||||||
add_comments('build:' + thisinfo['builds'][-1]['version'])
|
add_comments('build:' + thisinfo['builds'][-1]['vercode'])
|
||||||
mode = 0
|
mode = 0
|
||||||
add_comments(None)
|
add_comments(None)
|
||||||
|
|
||||||
@ -832,7 +832,7 @@ def write_metadata(dest, app):
|
|||||||
writefield('Repo')
|
writefield('Repo')
|
||||||
mf.write('\n')
|
mf.write('\n')
|
||||||
for build in app['builds']:
|
for build in app['builds']:
|
||||||
writecomments('build:' + build['version'])
|
writecomments('build:' + build['vercode'])
|
||||||
mf.write("Build:%s,%s\n" % (build['version'], build['vercode']))
|
mf.write("Build:%s,%s\n" % (build['version'], build['vercode']))
|
||||||
|
|
||||||
def write_builditem(key, value):
|
def write_builditem(key, value):
|
||||||
|
Loading…
Reference in New Issue
Block a user