mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
regex only for flavor blocks: flavor { ... } and nothing else
This commit is contained in:
parent
6640f276b0
commit
03f301470e
@ -1338,7 +1338,7 @@ def parse_androidmanifests(paths, app):
|
|||||||
with open(path, 'r') as f:
|
with open(path, 'r') as f:
|
||||||
buildfile = f.read()
|
buildfile = f.read()
|
||||||
|
|
||||||
regex_string = r"" + flavour + ".*?}"
|
regex_string = r"" + flavour + "[^}]*?{.*?}"
|
||||||
search = re.compile(regex_string, re.DOTALL)
|
search = re.compile(regex_string, re.DOTALL)
|
||||||
result = search.search(buildfile)
|
result = search.search(buildfile)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user