From df4345e275b358c51ade63d18cd0c622e9e377a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Tue, 19 Mar 2013 15:38:54 +0100 Subject: [PATCH] Fix elf check --- fdroidserver/common.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index e4e2be4e..308bb030 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -2009,8 +2009,11 @@ def scan_source(build_dir, root_dir, thisbuild): problems.append(msg) elif curfile.endswith('.so'): - print 'Warning: ELF at ' + fp - problems.append(msg) + if '/jni' in r: + print 'Warning: Found ELF at ' + fp + else: + msg = 'Found ELF at ' + fp + problems.append(msg) elif curfile.endswith('.java'): for line in file(fp):