chiark / gitweb /
Scan for bin and gen directories
authorCiaran Gultnieks <ciaran@ciarang.com>
Sat, 28 Jan 2012 09:41:46 +0000 (09:41 +0000)
committerCiaran Gultnieks <ciaran@ciarang.com>
Sat, 28 Jan 2012 09:41:46 +0000 (09:41 +0000)
scanner.py

index a0b73091e4dae95d2f50bed88b9d82dce9cbb4c6..71a8d3881ceff2882f7967e0c63453343102c233 100755 (executable)
@@ -114,6 +114,15 @@ for app in apps:
                         msg += ' in ' + app['id'] + ' ' + thisbuild['version']
                         problems.append(msg)
 
+                    # Presence of these is not a problem as such, but they
+                    # shouldn't be there and mess up our source tarballs...
+                    if os.path.exists(os.path.join(root_dir, 'bin')):
+                        msg = "There shouldn't be a bin directory"
+                        problems.append(msg)
+                    if os.path.exists(os.path.join(root_dir, 'gen')):
+                        msg = "There shouldn't be a gen directory"
+                        problems.append(msg)
+
         except BuildException as be:
             msg = "Could not scan app %s due to BuildException: %s" % (app['id'], be)
             problems.append(msg)