1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

Don't crash when using gradle=yes

This commit is contained in:
Daniel Martí 2014-03-19 17:25:57 +01:00
parent 0b50566f0f
commit c63fef2af3

View File

@ -613,8 +613,11 @@ def build_local(app, thisbuild, vcs, build_dir, output_dir, srclib_dir, extlib_d
commands = [config['gradle']]
if 'preassemble' in thisbuild:
commands += thisbuild['preassemble'].split()
flavours_cmd = ''.join(flavours)
flavours_cmd = flavours_cmd[0].upper() + flavours_cmd[1:]
if flavours_cmd:
flavours_cmd = flavours_cmd[0].upper() + flavours_cmd[1:]
commands += ['assemble'+flavours_cmd+'Release']
p = FDroidPopen(commands, cwd=gradle_dir)