1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 19:10:11 +01:00

lint: only check unused exlibs if using all apps

This commit is contained in:
Daniel Martí 2016-06-17 11:35:44 +01:00
parent 720d40ac1c
commit 3e88b7444d

View File

@ -387,9 +387,10 @@ def main():
anywarns = False anywarns = False
apps_check_funcs = [ apps_check_funcs = []
check_extlib_dir, if len(options.appid) == 0:
] # otherwise it finds tons of unused extlibs
apps_check_funcs.append(check_extlib_dir)
for check_func in apps_check_funcs: for check_func in apps_check_funcs:
for warn in check_func(apps.values()): for warn in check_func(apps.values()):
anywarns = True anywarns = True