mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 10:40:12 +02:00
scanner: don't crash on unused gradle files
This commit is contained in:
parent
83daf71338
commit
b9b5b5d1b0
@ -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']]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user