mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Cleanup upon failing sign_apk (Closes: #1085)
This commit is contained in:
parent
e03d71f6c3
commit
e243983ff8
1 changed files with 2 additions and 0 deletions
|
|
@ -3349,6 +3349,8 @@ def sign_apk(unsigned_path, signed_path, keyalias):
|
|||
'FDROID_KEY_STORE_PASS': config['keystorepass'],
|
||||
'FDROID_KEY_PASS': config.get('keypass', "")})
|
||||
if p.returncode != 0:
|
||||
if os.path.exists(signed_path):
|
||||
os.remove(signed_path)
|
||||
raise BuildException(_("Failed to sign application"), p.output)
|
||||
os.remove(unsigned_path)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue