common: fix bug in new SHA-256 signatures for >= android-18

Luckily, this is only used in `fdroid nightly` so far.
This commit is contained in:
Hans-Christoph Steiner 2017-12-22 17:49:36 +01:00
parent 109eb928e8
commit e451ec0079
2 changed files with 13 additions and 1 deletions

View file

@ -2466,7 +2466,7 @@ def sign_apk(unsigned_path, signed_path, keyalias):
if get_minSdkVersion_aapt(unsigned_path) < 18:
signature_algorithm = ['-sigalg', 'SHA1withRSA', '-digestalg', 'SHA1']
else:
signature_algorithm = ['-sigalg', 'SHA256withRSA', '-digestalg', 'SHA256']
signature_algorithm = ['-sigalg', 'SHA256withRSA', '-digestalg', 'SHA-256']
p = FDroidPopen([config['jarsigner'], '-keystore', config['keystore'],
'-storepass:env', 'FDROID_KEY_STORE_PASS',