1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 02:50:12 +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
apps_check_funcs = [
check_extlib_dir,
]
apps_check_funcs = []
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 warn in check_func(apps.values()):
anywarns = True