mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 23:42:37 +03:00
regex only for flavor blocks: flavor { ... } and nothing else
This commit is contained in:
parent
6640f276b0
commit
03f301470e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue