chiark / gitweb /
Fix elf check
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 19 Mar 2013 14:38:54 +0000 (15:38 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 19 Mar 2013 14:38:54 +0000 (15:38 +0100)
fdroidserver/common.py

index e4e2be4e7216097a3cc055c11f2d0bf1a251752d..308bb0306eedce4058653b216bb353c2386fdd3e 100644 (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):