chiark / gitweb /
Revert "scanner: promote jar and aar files present in the repo to errors"
authorHans-Christoph Steiner <hans@eds.org>
Wed, 25 Oct 2017 20:39:31 +0000 (22:39 +0200)
committerHans-Christoph Steiner <hans@eds.org>
Wed, 25 Oct 2017 20:55:47 +0000 (22:55 +0200)
This reverts commit 5f5d3ea896183260258f653f971c01896ec20ddf.

These new scanner rules for JARs causes most builds on fdroiddata to
break.  For example, at least the past 20 releases of
org.fdroid.fdroid.  fdroiddata needs to be cleaned up and prepared for
this before we can include 5f5d3ea896183260258f653f971c01896ec20ddf

I'm running fdroid scanner on the whole archive now, I'll post the log
to an issue once its done.  Ignoring test files would eliminate some
of these build failures, at least for most org.fdroid.fdroid builds.

refs #!325

fdroidserver/scanner.py

index 0b622bcdbc208fd0b87585112fc11a6e58804469..030ac7c443edb7c7759a75f6fde70e04c0107827 100644 (file)
@@ -202,10 +202,10 @@ def scan_source(build_dir, build):
                 if curfile == 'gradle-wrapper.jar':
                     removeproblem('gradle-wrapper.jar', path_in_build_dir, filepath)
                 else:
-                    count += handleproblem('JAR file', path_in_build_dir, filepath)
+                    warnproblem('JAR file', path_in_build_dir)
 
             elif ext == 'aar':
-                count += handleproblem('AAR file', path_in_build_dir, filepath)
+                warnproblem('AAR file', path_in_build_dir)
 
             elif ext == 'java':
                 if not os.path.isfile(filepath):