mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-08 18:31:07 +03:00
Move index signing methods into signindex.py
This commit is contained in:
parent
8f96c9da3d
commit
9f765ed6f7
4 changed files with 55 additions and 47 deletions
|
@ -45,6 +45,7 @@ from binascii import hexlify, unhexlify
|
|||
from PIL import Image
|
||||
import logging
|
||||
|
||||
from . import signindex
|
||||
from . import common
|
||||
from . import metadata
|
||||
from .common import FDroidPopen, FDroidPopenBytes, SdkToolsPopen
|
||||
|
@ -1374,7 +1375,8 @@ def make_index_v1(apps, packages, repodir, repodict, requestsdict):
|
|||
if options.nosign:
|
||||
logging.debug('index-v1 must have a signature, use `fdroid signindex` to create it!')
|
||||
else:
|
||||
common.sign_index_v1(repodir, json_name)
|
||||
signindex.config = config
|
||||
signindex.sign_index_v1(repodir, json_name)
|
||||
|
||||
|
||||
def make_index_v0(apps, apks, repodir, repodict, requestsdict):
|
||||
|
@ -1626,7 +1628,8 @@ def make_index_v0(apps, apks, repodir, repodict, requestsdict):
|
|||
if os.path.exists(signed):
|
||||
os.remove(signed)
|
||||
else:
|
||||
common.signjar(signed)
|
||||
signindex.config = config
|
||||
signindex.sign_jar(signed)
|
||||
|
||||
# Copy the repo icon into the repo directory...
|
||||
icon_dir = os.path.join(repodir, 'icons')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue