publish: fix stupid error in repro-signing and add integration test

stoopid mistake in ea84014f9b reported
by @CiaranG
This commit is contained in:
Hans-Christoph Steiner 2019-04-11 13:30:23 +02:00
parent 7272689ced
commit dd2f9d60f8
No known key found for this signature in database
GPG key ID: 3E177817BA1B9BFA
2 changed files with 30 additions and 1 deletions

View file

@ -280,7 +280,7 @@ def main():
signaturefile, signedfile, manifest = signingfiles
with open(signaturefile, 'rb') as f:
devfp = common.signer_fingerprint_short(common.get_signature(f.read()))
devfp = common.signer_fingerprint_short(common.get_certificate(f.read()))
devsigned = '{}_{}_{}.apk'.format(appid, vercode, devfp)
devsignedtmp = os.path.join(tmp_dir, devsigned)
shutil.copy(apkfile, devsignedtmp)