mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
Fix keysigning patching (again)
This commit is contained in:
parent
64a7a5149e
commit
4543588941
1 changed files with 7 additions and 4 deletions
|
@ -1971,8 +1971,8 @@ def remove_signing_keys(build_dir):
|
|||
lines = o.readlines()
|
||||
|
||||
opened = 0
|
||||
with open(path, "w+") as o:
|
||||
for line in o:
|
||||
with open(path, "w") as o:
|
||||
for line in lines:
|
||||
if 'signingConfigs ' in line:
|
||||
opened = 1
|
||||
changed = True
|
||||
|
@ -1994,8 +1994,11 @@ def remove_signing_keys(build_dir):
|
|||
path = os.path.join(root, propfile)
|
||||
changed = False
|
||||
|
||||
with open(path, "w+") as o:
|
||||
for line in o:
|
||||
with open(path, "r") as o:
|
||||
lines = o.readlines()
|
||||
|
||||
with open(path, "w") as o:
|
||||
for line in lines:
|
||||
if line.startswith('key.store'):
|
||||
changed = True
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue