mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-13 02:30:11 +01:00
Merge commit 'refs/merge-requests/117' of git://gitorious.org/f-droid/fdroidserver into merge-requests/117
This commit is contained in:
commit
8c195c637a
@ -1830,7 +1830,7 @@ def prepare_source(vcs, app, build, build_dir, extlib_dir, sdk_path, ndk_path, j
|
||||
|
||||
# There should never be gen or bin directories in the source, so just get
|
||||
# rid of them...
|
||||
for baddir in ['gen', 'bin']:
|
||||
for baddir in ['gen', 'bin', 'obj', 'libs/armeabi', 'libs/mips', 'libs/x86']:
|
||||
badpath = os.path.join(root_dir, baddir)
|
||||
if os.path.exists(badpath):
|
||||
shutil.rmtree(badpath)
|
||||
@ -2010,9 +2010,12 @@ def scan_source(build_dir, root_dir, thisbuild):
|
||||
msg = 'Found apk file, which should not be in the source - ' + fp
|
||||
problems.append(msg)
|
||||
|
||||
elif curfile.endswith('.so') or curfile.endswith('.elf'):
|
||||
msg = 'Found ELF at ' + fp
|
||||
problems.append(msg)
|
||||
elif curfile.endswith('.so'):
|
||||
if '/jni' in r:
|
||||
print 'Warning: Found ELF at ' + fp
|
||||
else:
|
||||
msg = 'Found ELF at ' + fp
|
||||
problems.append(msg)
|
||||
|
||||
elif curfile.endswith('.java'):
|
||||
for line in file(fp):
|
||||
|
Loading…
Reference in New Issue
Block a user