mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 15:02:51 +03:00
More import tool improvements
This commit is contained in:
parent
d3ee954ab2
commit
8f3f7433ee
3 changed files with 39 additions and 5 deletions
11
common.py
11
common.py
|
@ -517,7 +517,16 @@ def write_metadata(dest, app):
|
|||
for build in app['builds']:
|
||||
writecomments('build:' + build['version'])
|
||||
mf.write('Build Version:')
|
||||
mf.write('\\\n'.join(build['origlines']) + '\n')
|
||||
if build.has_key('origlines'):
|
||||
# Keeping the original formatting if we loaded it from a file...
|
||||
mf.write('\\\n'.join(build['origlines']) + '\n')
|
||||
else:
|
||||
mf.write(build['version'] + ',' + build['vercode'] + ',' +
|
||||
build['commit'])
|
||||
for key,value in build.iteritems():
|
||||
if key not in ['version', 'vercode', 'commit']:
|
||||
mf.write(',' + key + '=' + value)
|
||||
mf.write('\n')
|
||||
if len(app['builds']) > 0:
|
||||
mf.write('\n')
|
||||
writefield('Update Check Mode')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue