mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-08 18:31:07 +03:00
sort index-v1; publish now creates and stores a list of signature fingerprints
This commit is contained in:
parent
bca07f794f
commit
6930edf889
4 changed files with 161 additions and 7 deletions
|
@ -971,13 +971,15 @@ def scan_apk(apk_file):
|
|||
else:
|
||||
scan_apk_androguard(apk, apk_file)
|
||||
|
||||
# Get the signature
|
||||
# Get the signature, or rather the signing key fingerprints
|
||||
logging.debug('Getting signature of {0}'.format(os.path.basename(apk_file)))
|
||||
apk['sig'] = getsig(apk_file)
|
||||
if not apk['sig']:
|
||||
raise BuildException("Failed to get apk signature")
|
||||
apk['signer'] = common.apk_signer_fingerprint(os.path.join(os.getcwd(),
|
||||
apk_file))
|
||||
if not apk.get('signer'):
|
||||
raise BuildException("Failed to get apk signing key fingerprint")
|
||||
|
||||
# Get size of the APK
|
||||
apk['size'] = os.path.getsize(apk_file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue