Centralise handling of default gradle flavours

This commit is contained in:
Daniel Martí 2014-09-13 13:04:24 +02:00
parent a195556378
commit 34a3405208
4 changed files with 9 additions and 13 deletions

View file

@ -358,8 +358,6 @@ def fetch_autoname(app, tag):
app_dir = os.path.join(app_dir, app['builds'][-1]['subdir'])
if app['builds'][-1]['gradle']:
flavours = app['builds'][-1]['gradle']
if len(flavours) == 1 and flavours[0] in ['main', 'yes', '']:
flavours = None
logging.debug("...fetch auto name from " + app_dir)
new_name = common.fetch_real_name(app_dir, flavours)