From: Daniel Martí Date: Wed, 16 Oct 2013 09:55:17 +0000 (+0200) Subject: Don't catch octet-stream, catch static libs and bin exes X-Git-Tag: 0.1~343 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=bd59b2f77dc6a42a63a6f55f01f4188aa71ec944;p=fdroidserver.git Don't catch octet-stream, catch static libs and bin exes --- diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 00919cc4..022b0a27 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1617,11 +1617,13 @@ def scan_source(build_dir, root_dir, thisbuild): mime = m.id_filename(fp) if mime == 'application/x-sharedlib': - problems.append('Found shared library at %s (%s)' % (fd, fp)) - elif mime == 'application/octet-stream': - problems.append('Found binary at %s (%s)' % (fd, fp)) - elif mime == 'application/vnd.android.package-archive' or fp.endswith('.apk'): - problems.append('Found apk at %s (%s)' % (fd, fp)) + problems.append('Found shared library at %s' % fd) + elif mime == 'application/x-archive': + 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'): + problems.append('Found apk archive at %s' % fd) elif curfile.endswith('.java'): for line in file(fp):