chiark / gitweb /
Scan for random apk files floating around in 'source code'
authorCiaran Gultnieks <ciaran@ciarang.com>
Mon, 13 Aug 2012 16:58:02 +0000 (17:58 +0100)
committerCiaran Gultnieks <ciaran@ciarang.com>
Mon, 13 Aug 2012 16:58:02 +0000 (17:58 +0100)
fdroidserver/common.py

index 37caf6fcacc7c6434671cac0bba8c77156dbcdbd..325dfea5d56fc3ae99296683c8323e7f57a14760 100644 (file)
@@ -1049,6 +1049,10 @@ def scan_source(build_dir, root_dir, thisbuild):
                         msg = 'Found probable non-free blob ' + fp
                         problems.append(msg)
 
+                if curfile.endswith('.apk'):
+                    msg = 'Found apk file, which should not be in the source - ' + fp
+                    problems.append(msg)
+
                 if curfile.endswith('.java'):
                     for line in file(fp):