1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-11 15:13:27 +02:00

scanner: don't crash on unused gradle files

This commit is contained in:
Daniel Martí 2015-09-22 13:02:26 -07:00
parent 83daf71338
commit b9b5b5d1b0

View File

@ -33,7 +33,7 @@ options = None
def get_gradle_compile_commands(thisbuild):
compileCommands = ['compile', 'releaseCompile']
if thisbuild['gradle'] != ['yes']:
if thisbuild['gradle'] and thisbuild['gradle'] != ['yes']:
compileCommands += [flavor + 'Compile' for flavor in thisbuild['gradle']]
compileCommands += [flavor + 'ReleaseCompile' for flavor in thisbuild['gradle']]