mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
Make app and version name formats a standard
This commit is contained in:
parent
bf61dcf708
commit
996f141da8
3 changed files with 30 additions and 14 deletions
|
@ -75,6 +75,16 @@ def getapkname(app, build):
|
|||
def getsrcname(app, build):
|
||||
return "%s_%s_src.tar.gz" % (app['id'], build['vercode'])
|
||||
|
||||
def getappname(app):
|
||||
if app['Name']:
|
||||
return '%s (%s)' % (app['Name'], app['id'])
|
||||
if app['Auto Name']:
|
||||
return '%s (%s)' % (app['Auto Name'], app['id'])
|
||||
return app['id']
|
||||
|
||||
def getcvname(app):
|
||||
return '%s (%s)' % (app['Current Version'], app['Current Version Code'])
|
||||
|
||||
def getvcs(vcstype, remote, local):
|
||||
if vcstype == 'git':
|
||||
return vcs_git(remote, local)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue