From: Daniel Martí Date: Fri, 17 Jun 2016 10:35:44 +0000 (+0100) Subject: lint: only check unused exlibs if using all apps X-Git-Tag: 0.7.0~48 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=3e88b7444d31e894ac3b182f4b5a868f082d08c5;p=fdroidserver.git lint: only check unused exlibs if using all apps --- 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