mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-18 20:50:10 +01:00
Cleanup upon failing sign_apk (Closes: #1085)
This commit is contained in:
parent
e03d71f6c3
commit
e243983ff8
@ -3349,6 +3349,8 @@ def sign_apk(unsigned_path, signed_path, keyalias):
|
|||||||
'FDROID_KEY_STORE_PASS': config['keystorepass'],
|
'FDROID_KEY_STORE_PASS': config['keystorepass'],
|
||||||
'FDROID_KEY_PASS': config.get('keypass', "")})
|
'FDROID_KEY_PASS': config.get('keypass', "")})
|
||||||
if p.returncode != 0:
|
if p.returncode != 0:
|
||||||
|
if os.path.exists(signed_path):
|
||||||
|
os.remove(signed_path)
|
||||||
raise BuildException(_("Failed to sign application"), p.output)
|
raise BuildException(_("Failed to sign application"), p.output)
|
||||||
os.remove(unsigned_path)
|
os.remove(unsigned_path)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user