Merge branch 'refuse-publishing-duplicate-apks' into 'master'

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

See merge request !329
This commit is contained in:
Hans-Christoph Steiner 2017-09-12 15:33:51 +00:00
commit 253bd92df3

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',