From 7cf368df70581e95aaf282aecb88df4177b14258 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Fri, 21 Mar 2014 19:11:52 +0100 Subject: [PATCH] Better gradle signing keys regexes --- fdroidserver/common.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 0dbe3e9c..0d0ccccd 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -1409,9 +1409,10 @@ def remove_signing_keys(build_dir): signing_configs = re.compile(r'^[\t ]*signingConfigs[ \t]*{[ \t]*$') line_matches = [ re.compile(r'^[\t ]*signingConfig [^ ]*$'), - re.compile(r'android.signingConfigs.'), - re.compile(r'variant.outputFile = '), - re.compile(r'.readLine\('), + re.compile(r'.*android\.signingConfigs\..*'), + re.compile(r'.*variant\.outputFile = .*'), + re.compile(r'.*\.readLine\(.*'), + re.compile(r'.*System\.console\(\).*'), ] for root, dirs, files in os.walk(build_dir): if 'build.gradle' in files: