mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
Merge branch 'error_on_jars' into 'master'
RFC: Error on jars See merge request fdroid/fdroidserver!325
This commit is contained in:
commit
53ce81179c
1 changed files with 5 additions and 2 deletions
|
|
@ -199,10 +199,13 @@ def scan_source(build_dir, build):
|
|||
elif ext == 'jar':
|
||||
for name in suspects_found(curfile):
|
||||
count += handleproblem('usual supect \'%s\'' % name, path_in_build_dir, filepath)
|
||||
warnproblem('JAR file', path_in_build_dir)
|
||||
if curfile == 'gradle-wrapper.jar':
|
||||
removeproblem('gradle-wrapper.jar', path_in_build_dir, filepath)
|
||||
else:
|
||||
count += handleproblem('JAR file', path_in_build_dir, filepath)
|
||||
|
||||
elif ext == 'aar':
|
||||
warnproblem('AAR file', path_in_build_dir)
|
||||
count += handleproblem('AAR file', path_in_build_dir, filepath)
|
||||
|
||||
elif ext == 'java':
|
||||
if not os.path.isfile(filepath):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue