From: Ciaran Gultnieks Date: Fri, 13 Jan 2012 19:28:49 +0000 (+0000) Subject: Add check for unbuilt jni to scanner X-Git-Tag: 0.1~1108 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=373f892558f2e52662f942627026fa232c365435;p=fdroidserver.git Add check for unbuilt jni to scanner --- diff --git a/scanner.py b/scanner.py index f4d63e35..2f30b439 100755 --- a/scanner.py +++ b/scanner.py @@ -102,6 +102,14 @@ for app in apps: msg += ' in ' + app['id'] + ' ' + thisbuild['version'] problems.append(msg) + # Presence of a jni directory without buildjni=yes might + # indicate a problem... + if (os.path.exists(os.path.join(root_dir, 'jni')) and + thisbuild.get('buildjni', 'no') != 'yes'): + msg = 'Found jni directory, but buildjni is not enabled' + msg += ' in ' + app['id'] + ' ' + thisbuild['version'] + problems.append(msg) + except BuildException as be: msg = "Could not scan app %s due to BuildException: %s" % (app['id'], be) problems.append(msg)