mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 23:10:29 +03:00
Some fixes to the scanner algorithm
This commit is contained in:
parent
1a4b18e2e8
commit
5455576b6b
1 changed files with 2 additions and 2 deletions
|
|
@ -1711,7 +1711,7 @@ def scan_source(build_dir, root_dir, thisbuild):
|
||||||
|
|
||||||
for suspect in usual_suspects:
|
for suspect in usual_suspects:
|
||||||
if suspect in curfile.lower():
|
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)
|
mime = ms.file(fp)
|
||||||
if mime == 'application/x-sharedlib':
|
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)
|
problems.append('Found static library at %s' % fd)
|
||||||
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 fp.endswith('.apk'):
|
elif mime == 'application/jar' and fp.endswith('.apk'):
|
||||||
problems.append('Found apk archive at %s' % fd)
|
problems.append('Found apk archive at %s' % fd)
|
||||||
|
|
||||||
elif curfile.endswith('.java'):
|
elif curfile.endswith('.java'):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue