1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

Don't error when finding apk files, just delete them

This commit is contained in:
Daniel Martí 2013-10-30 19:15:15 +01:00
parent a0e7409148
commit efb161e622

View File

@ -1654,7 +1654,8 @@ def scan_source(build_dir, root_dir, thisbuild):
elif mime == 'application/x-executable': elif mime == 'application/x-executable':
problems.append('Found binary executable at %s' % fd) problems.append('Found binary executable at %s' % fd)
elif mime == 'application/jar' and fp.endswith('.apk'): 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'): elif curfile.endswith('.java'):
for line in file(fp): for line in file(fp):