mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-05-18 21:47:19 -04:00
scanner: don't crash on unused gradle files
This commit is contained in:
@@ -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']]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user