From: Daniel Martí Date: Wed, 30 Oct 2013 18:15:15 +0000 (+0100) Subject: Don't error when finding apk files, just delete them X-Git-Tag: 0.1~273 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=efb161e622675404fdb8d875b6a8c5724b62763c;p=fdroidserver.git Don't error when finding apk files, just delete them --- diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 84577c99..6c066314 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1654,7 +1654,8 @@ def scan_source(build_dir, root_dir, thisbuild): elif mime == 'application/x-executable': problems.append('Found binary executable at %s' % fd) elif mime == 'application/jar' and fp.endswith('.apk'): - problems.append('Found apk archive at %s' % fd) + print 'Removing apk file at %s' % fd + os.remove(fp) elif curfile.endswith('.java'): for line in file(fp):