chiark / gitweb /
Fix counting of scanner problems
authorDaniel Martí <mvdan@mvdan.cc>
Fri, 11 Apr 2014 22:14:05 +0000 (00:14 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Fri, 11 Apr 2014 22:18:20 +0000 (00:18 +0200)
fdroidserver/common.py

index ef36deb6fbeaae68c6647ce3b99ff61a3e6ea776..da6be67f1d67409b1b3f98b89026d5dff9587fcb 100644 (file)
@@ -1276,9 +1276,9 @@ def scan_source(build_dir, root_dir, thisbuild):
             elif mime == 'application/x-archive':
                 count += handleproblem('static library', fd, fp)
             elif mime == 'application/x-executable':
-                handleproblem('binary executable', fd, fp)
+                count += handleproblem('binary executable', fd, fp)
             elif mime == 'application/x-java-applet':
-                handleproblem('Java compiled class', fd, fp)
+                count += handleproblem('Java compiled class', fd, fp)
             elif mime == 'application/jar' and has_extension(fp, 'apk'):
                 removeproblem('APK file', fd, fp)
             elif has_extension(fp, 'jar') and mime in [