mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-05-18 21:47:19 -04:00
Gradle cleaner: support multilines with backslashes
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user