Fix keysigning patches

This commit is contained in:
Daniel Martí 2013-11-15 21:24:54 +01:00
parent 860baa883c
commit b6eefb2d5d

View file

@ -1971,8 +1971,8 @@ def remove_signing_keys(build_dir):
lines = o.readlines() lines = o.readlines()
opened = 0 opened = 0
with open(path, "w") as o: with open(path, "w+") as o:
for line in lines: for line in o:
if 'signingConfigs ' in line: if 'signingConfigs ' in line:
opened = 1 opened = 1
changed = True changed = True
@ -1994,8 +1994,8 @@ def remove_signing_keys(build_dir):
path = os.path.join(root, propfile) path = os.path.join(root, propfile)
changed = False changed = False
with open(path, "w") as o: with open(path, "w+") as o:
for line in lines: for line in o:
if line.startswith('key.store'): if line.startswith('key.store'):
changed = True changed = True
else: else: