mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 23:42:37 +03:00
Gradle cleaner: support multilines with backslashes
This commit is contained in:
parent
371e64dfc2
commit
24a8523c0b
1 changed files with 8 additions and 1 deletions
|
@ -1740,8 +1740,15 @@ def remove_signing_keys(build_dir):
|
||||||
changed = False
|
changed = False
|
||||||
|
|
||||||
opened = 0
|
opened = 0
|
||||||
|
i = 0
|
||||||
with open(path, "w") as o:
|
with open(path, "w") as o:
|
||||||
for line in lines:
|
while i < len(lines):
|
||||||
|
line = lines[i]
|
||||||
|
i += 1
|
||||||
|
while line.endswith('\\\n'):
|
||||||
|
line = line.rstrip('\\\n') + lines[i]
|
||||||
|
i += 1
|
||||||
|
|
||||||
if comment.match(line):
|
if comment.match(line):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue