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

always use androguard version of common.get_apk_id() first

This removes the need for common.use_androguard()
This commit is contained in:
Hans-Christoph Steiner 2020-10-14 16:53:59 +02:00
parent 27b90a13bf
commit 8fd7dcd425

View File

@ -2431,15 +2431,12 @@ def get_apk_id(apkfile):
:returns: triplet (appid, version code, version name)
"""
if use_androguard():
try:
return get_apk_id_androguard(apkfile)
except zipfile.BadZipFile as e:
logging.error(apkfile + ': ' + str(e))
if 'aapt' in config:
return get_apk_id_aapt(apkfile)
else:
return get_apk_id_aapt(apkfile)
try:
return get_apk_id_androguard(apkfile)
except zipfile.BadZipFile as e:
logging.error(apkfile + ': ' + str(e))
if 'aapt' in config:
return get_apk_id_aapt(apkfile)
def get_apk_id_androguard(apkfile):