mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-03-25 18:34:30 -04:00
verify_apk_signature: work when options is not set
Then test_signatures.py can run on the PUBLISH CI job.
This commit is contained in:
@@ -739,6 +739,7 @@ PUBLISH:
|
||||
tests/test_gpgsign.py
|
||||
tests/test_metadata.py
|
||||
tests/test_publish.py
|
||||
tests/test_signatures.py
|
||||
tests/test_signindex.py
|
||||
|
||||
- cd tests
|
||||
|
||||
@@ -3894,11 +3894,11 @@ def verify_apk_signature(apk, min_sdk_version=None):
|
||||
args = [config['apksigner'], 'verify']
|
||||
if min_sdk_version:
|
||||
args += ['--min-sdk-version=' + min_sdk_version]
|
||||
if options.verbose:
|
||||
if options and options.verbose:
|
||||
args += ['--verbose']
|
||||
try:
|
||||
output = subprocess.check_output(args + [apk])
|
||||
if options.verbose:
|
||||
if options and options.verbose:
|
||||
logging.debug(apk + ': ' + output.decode('utf-8'))
|
||||
return True
|
||||
except subprocess.CalledProcessError as e:
|
||||
|
||||
Reference in New Issue
Block a user