publish: avoid double removal of dev-supplied reference binary

This commit is contained in:
Michael Pöhn 2018-07-12 23:04:05 +02:00 committed by Hans-Christoph Steiner
parent cdc2147de9
commit db5ed26517

View file

@ -248,6 +248,9 @@ def main():
if compare_result: if compare_result:
logging.error("...verification failed - publish skipped : " logging.error("...verification failed - publish skipped : "
"{result}".format(result=compare_result)) "{result}".format(result=compare_result))
os.remove(srcapk)
logging.debug('remvoed developer supplied reference binary: {path}'
.format(path=srcapk))
else: else:
# Success! So move the downloaded file to the repo, and remove # Success! So move the downloaded file to the repo, and remove
# our built version. # our built version.