1
0
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:
Daniel Martí 2015-01-05 12:59:33 +01:00
parent 371e64dfc2
commit 24a8523c0b

View File

@ -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