From: Daniel Martí Date: Tue, 29 Oct 2013 11:03:37 +0000 (+0100) Subject: Some fixes to the scanner algorithm X-Git-Tag: 0.1~281^2~3 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=5455576b6b210b6331730f80328039b8652735a1;p=fdroidserver.git Some fixes to the scanner algorithm --- diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 9db778a7..a05f1811 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -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'):