1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-01 00:30:13 +02:00

Cleanup upon failing sign_apk (Closes: #1085)

This commit is contained in:
Jochen Sprickerhof 2023-02-15 16:12:12 +01:00 committed by Hans-Christoph Steiner
parent e03d71f6c3
commit e243983ff8

View File

@ -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)