Make app and version name formats a standard

This commit is contained in:
Daniel Martí 2013-12-02 15:28:30 +01:00
parent bf61dcf708
commit 996f141da8
3 changed files with 30 additions and 14 deletions

View file

@ -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)