proper error message when publishing with the same app in repo and unsigned

This commit is contained in:
Michael Pöhn 2017-05-30 14:53:54 +02:00
parent 546b09cd93
commit 328c1ad0c7

View file

@ -194,6 +194,13 @@ def main():
if p.returncode != 0:
raise BuildException("Failed to generate key")
signed_apk_path = os.path.join(output_dir, apkfilename)
if os.path.exists(signed_apk_path):
raise BuildException("Refusing to sign '{0}' file exists in both "
"{1} and {2} folder.".format(apkfilename,
unsigned_dir,
output_dir))
# Sign the application...
p = FDroidPopen([config['jarsigner'], '-keystore', config['keystore'],
'-storepass:env', 'FDROID_KEY_STORE_PASS',