1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

Make python3-biplist optional

This commit is contained in:
Jochen Sprickerhof 2023-01-13 18:11:34 +01:00 committed by Hans-Christoph Steiner
parent e3d319f30b
commit 60371093e2

View File

@ -46,7 +46,6 @@ except ImportError:
import collections import collections
from binascii import hexlify from binascii import hexlify
from biplist import readPlist
from . import _ from . import _
from . import common from . import common
@ -555,7 +554,10 @@ def process_ipa(repodir, apks):
logging.error(_("Deleting unknown file: {path}").format(path=f)) logging.error(_("Deleting unknown file: {path}").format(path=f))
os.remove(f) os.remove(f)
for f in glob.glob(os.path.join(repodir, '*.ipa')): ipas = glob.glob(os.path.join(repodir, '*.ipa'))
if ipas:
from biplist import readPlist
for f in ipas:
ipa = {} ipa = {}
apks.append(ipa) apks.append(ipa)