mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 23:42:37 +03:00
Merge commit 'refs/merge-requests/116' of git://gitorious.org/f-droid/fdroidserver into merge-requests/116
This commit is contained in:
commit
4b472aed5a
1 changed files with 19 additions and 15 deletions
|
@ -1993,13 +1993,14 @@ def scan_source(build_dir, root_dir, thisbuild):
|
||||||
for r,d,f in os.walk(build_dir):
|
for r,d,f in os.walk(build_dir):
|
||||||
for curfile in f:
|
for curfile in f:
|
||||||
|
|
||||||
if r.find('/.hg/') == -1:
|
if '/.hg' in r or '/.git' in r or '/.svn' in r:
|
||||||
|
continue
|
||||||
|
|
||||||
# Path (relative) to the file...
|
# Path (relative) to the file...
|
||||||
fp = os.path.join(r, curfile)
|
fp = os.path.join(r, curfile)
|
||||||
|
|
||||||
for suspect in usual_suspects:
|
for suspect in usual_suspects:
|
||||||
if curfile.lower().find(suspect) != -1:
|
if suspect in curfile.lower():
|
||||||
msg = 'Found probable non-free blob ' + fp
|
msg = 'Found probable non-free blob ' + fp
|
||||||
problems.append(msg)
|
problems.append(msg)
|
||||||
|
|
||||||
|
@ -2007,10 +2008,13 @@ def scan_source(build_dir, root_dir, thisbuild):
|
||||||
msg = 'Found apk file, which should not be in the source - ' + fp
|
msg = 'Found apk file, which should not be in the source - ' + fp
|
||||||
problems.append(msg)
|
problems.append(msg)
|
||||||
|
|
||||||
if curfile.endswith('.java'):
|
elif curfile.endswith('.so') or curfile.endswith('.elf'):
|
||||||
for line in file(fp):
|
msg = 'Found ELF at ' + fp
|
||||||
|
problems.append(msg)
|
||||||
|
|
||||||
if line.find('DexClassLoader') != -1:
|
elif curfile.endswith('.java'):
|
||||||
|
for line in file(fp):
|
||||||
|
if 'DexClassLoader' in line:
|
||||||
msg = 'Found DexClassLoader in ' + fp
|
msg = 'Found DexClassLoader in ' + fp
|
||||||
problems.append(msg)
|
problems.append(msg)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue