mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Support version suffix when generating auto-builds
This commit is contained in:
parent
9b82009870
commit
f2cf7c146b
1 changed files with 7 additions and 1 deletions
|
|
@ -231,6 +231,12 @@ def main():
|
|||
pass
|
||||
elif mode.startswith('Version '):
|
||||
pattern = mode[8:]
|
||||
if pattern.startswith('+'):
|
||||
o = pattern.find(' ')
|
||||
suffix = pattern[1:o]
|
||||
pattern = pattern[o + 1:]
|
||||
else:
|
||||
suffix = ''
|
||||
gotcur = False
|
||||
latest = None
|
||||
for build in app['builds']:
|
||||
|
|
@ -242,7 +248,7 @@ def main():
|
|||
newbuild = latest.copy()
|
||||
del newbuild['origlines']
|
||||
newbuild['vercode'] = app['Current Version Code']
|
||||
newbuild['version'] = app['Current Version']
|
||||
newbuild['version'] = app['Current Version'] + suffix
|
||||
print "...auto-generating build for " + newbuild['version']
|
||||
commit = pattern.replace('%v', newbuild['version'])
|
||||
commit = commit.replace('%c', newbuild['vercode'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue