1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-07-04 16:30:12 +02:00

regex only for flavor blocks: flavor { ... } and nothing else

This commit is contained in:
tobiasKaminsky 2017-12-11 12:04:17 +01:00
parent 6640f276b0
commit 03f301470e
No known key found for this signature in database
GPG Key ID: 0E00D4D47D0C5AF7

View File

@ -1338,7 +1338,7 @@ def parse_androidmanifests(paths, app):
with open(path, 'r') as f:
buildfile = f.read()
regex_string = r"" + flavour + ".*?}"
regex_string = r"" + flavour + "[^}]*?{.*?}"
search = re.compile(regex_string, re.DOTALL)
result = search.search(buildfile)