mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 15:32:30 +03:00
signatures: make from . import net
optional
This eliminates the need to have python3-requests installed on the signing
server. This was missed in 031ae1103e
This commit is contained in:
parent
3e6cb67e69
commit
2f4e0f47a1
1 changed files with 2 additions and 1 deletions
|
@ -24,7 +24,6 @@ import logging
|
||||||
|
|
||||||
from . import _
|
from . import _
|
||||||
from . import common
|
from . import common
|
||||||
from . import net
|
|
||||||
from .exception import FDroidException
|
from .exception import FDroidException
|
||||||
|
|
||||||
|
|
||||||
|
@ -68,6 +67,8 @@ def extract(options):
|
||||||
elif httpre.match(apk):
|
elif httpre.match(apk):
|
||||||
if apk.startswith('https') or options.no_check_https:
|
if apk.startswith('https') or options.no_check_https:
|
||||||
try:
|
try:
|
||||||
|
from . import net
|
||||||
|
|
||||||
tmp_apk = os.path.join(tmp_dir, 'signed.apk')
|
tmp_apk = os.path.join(tmp_dir, 'signed.apk')
|
||||||
net.download_file(apk, tmp_apk)
|
net.download_file(apk, tmp_apk)
|
||||||
sigdir = extract_signature(tmp_apk)
|
sigdir = extract_signature(tmp_apk)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue