chiark / gitweb /
Some fixes to the scanner algorithm
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 29 Oct 2013 11:03:37 +0000 (12:03 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Tue, 29 Oct 2013 11:03:37 +0000 (12:03 +0100)
fdroidserver/common.py

index 9db778a7613ca6eb5ca807e88155ed7f94edb0ed..a05f1811da2eb5e799a0f4969b2b8807173c5d3c 100644 (file)
@@ -1711,7 +1711,7 @@ def scan_source(build_dir, root_dir, thisbuild):
 
             for suspect in usual_suspects:
                 if suspect in curfile.lower():
-                    problems.append('Found probable non-free blob ' + fp)
+                    problems.append('Found usual supect in filename ' + fp)
 
             mime = ms.file(fp)
             if mime == 'application/x-sharedlib':
@@ -1720,7 +1720,7 @@ def scan_source(build_dir, root_dir, thisbuild):
                 problems.append('Found static library at %s' % fd)
             elif mime == 'application/x-executable':
                 problems.append('Found binary executable at %s' % fd)
-            elif fp.endswith('.apk'):
+            elif mime == 'application/jar' and fp.endswith('.apk'):
                 problems.append('Found apk archive at %s' % fd)
 
             elif curfile.endswith('.java'):