1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-13 02:30:11 +01:00

Fix elf check

This commit is contained in:
Daniel Martí 2013-03-19 15:38:54 +01:00
parent e64a3ad515
commit df4345e275

View File

@ -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):