From 3e88b7444d31e894ac3b182f4b5a868f082d08c5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Fri, 17 Jun 2016 11:35:44 +0100 Subject: [PATCH] lint: only check unused exlibs if using all apps --- fdroidserver/lint.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fdroidserver/lint.py b/fdroidserver/lint.py index 426f7cd0..c805288f 100644 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@ -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 -- 2.30.2