From: Ciaran Gultnieks Date: Sat, 28 Jan 2012 09:41:46 +0000 (+0000) Subject: Scan for bin and gen directories X-Git-Tag: 0.1~1021 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=916646e1c1c9517ef3d4f101d17ef3dedc62e713;p=fdroidserver.git Scan for bin and gen directories --- diff --git a/scanner.py b/scanner.py index a0b73091..71a8d388 100755 --- a/scanner.py +++ b/scanner.py @@ -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)