mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-14 02:50:12 +01:00
Also strip project.properties of ant keysigning options
This commit is contained in:
parent
13c79e8e46
commit
9962074cf3
@ -1442,7 +1442,12 @@ def remove_signing_keys(build_dir):
|
|||||||
|
|
||||||
logging.info("Cleaned build.gradle of keysigning configs at %s" % path)
|
logging.info("Cleaned build.gradle of keysigning configs at %s" % path)
|
||||||
|
|
||||||
for propfile in ('build.properties', 'default.properties', 'ant.properties'):
|
for propfile in [
|
||||||
|
'project.properties',
|
||||||
|
'build.properties',
|
||||||
|
'default.properties',
|
||||||
|
'ant.properties',
|
||||||
|
]:
|
||||||
if propfile in files:
|
if propfile in files:
|
||||||
path = os.path.join(root, propfile)
|
path = os.path.join(root, propfile)
|
||||||
|
|
||||||
@ -1451,8 +1456,11 @@ def remove_signing_keys(build_dir):
|
|||||||
|
|
||||||
with open(path, "w") as o:
|
with open(path, "w") as o:
|
||||||
for line in lines:
|
for line in lines:
|
||||||
if not line.startswith('key.store'):
|
if line.startswith('key.store'):
|
||||||
o.write(line)
|
continue
|
||||||
|
if line.startswith('key.alias'):
|
||||||
|
continue
|
||||||
|
o.write(line)
|
||||||
|
|
||||||
logging.info("Cleaned %s of keysigning configs at %s" % (propfile,path))
|
logging.info("Cleaned %s of keysigning configs at %s" % (propfile,path))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user