signatures: make from . import net optional

This eliminates the need to have python3-requests installed on the signing
server.  This was missed in 031ae1103e23731ccd0cb2d82ab140917122b110
This commit is contained in:
Hans-Christoph Steiner 2025-03-12 16:44:46 +01:00
parent 3e6cb67e69
commit 2f4e0f47a1

View File

@ -24,7 +24,6 @@ import logging
from . import _
from . import common
from . import net
from .exception import FDroidException
@ -68,6 +67,8 @@ def extract(options):
elif httpre.match(apk):
if apk.startswith('https') or options.no_check_https:
try:
from . import net
tmp_apk = os.path.join(tmp_dir, 'signed.apk')
net.download_file(apk, tmp_apk)
sigdir = extract_signature(tmp_apk)