mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-04 14:30:11 +01:00
Gradle cleaner: support multilines with backslashes
This commit is contained in:
parent
371e64dfc2
commit
24a8523c0b
@ -1740,8 +1740,15 @@ def remove_signing_keys(build_dir):
|
||||
changed = False
|
||||
|
||||
opened = 0
|
||||
i = 0
|
||||
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):
|
||||
continue
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user