mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
Merge branch 'fixFlavor' into 'master'
Regex only for flavor blocks: flavor { ... }
See merge request fdroid/fdroidserver!407
This commit is contained in:
commit
61aac0503a
5 changed files with 159 additions and 4 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