mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
merge scan_apk doc string updates
This commit is contained in:
parent
578ff7069f
commit
3e7ce8ce31
1 changed files with 16 additions and 7 deletions
|
|
@ -1368,16 +1368,25 @@ def scan_repo_files(apkcache, repodir, knownapks, use_date_from_file=False):
|
||||||
|
|
||||||
|
|
||||||
def scan_apk(apk_file, require_signature=True):
|
def scan_apk(apk_file, require_signature=True):
|
||||||
"""
|
"""Scan an APK file and returns dictionary with metadata of the APK.
|
||||||
Scans an APK file and returns dictionary with metadata of the APK.
|
|
||||||
|
|
||||||
Attention: This does *not* verify that the APK signature is correct.
|
Attention: This does *not* verify that the APK signature is correct.
|
||||||
|
|
||||||
:param apk_file: The (ideally absolute) path to the APK file
|
Parameters
|
||||||
:param require_signature: Raise an exception is there is no valid
|
----------
|
||||||
signature. Default to Ture.
|
|
||||||
:raises BuildException
|
apk_file
|
||||||
:return A dict containing APK metadata
|
The (ideally absolute) path to the APK file
|
||||||
|
require_signature
|
||||||
|
Raise an exception is there is no valid signature. Default to True.
|
||||||
|
|
||||||
|
Raises
|
||||||
|
------
|
||||||
|
BuildException
|
||||||
|
|
||||||
|
Returns
|
||||||
|
-------
|
||||||
|
A dict containing APK metadata
|
||||||
"""
|
"""
|
||||||
apk = {
|
apk = {
|
||||||
'hash': common.sha256sum(apk_file),
|
'hash': common.sha256sum(apk_file),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue