mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
always use androguard version of common.get_apk_id() first
This removes the need for common.use_androguard()
This commit is contained in:
parent
27b90a13bf
commit
8fd7dcd425
1 changed files with 6 additions and 9 deletions
|
@ -2431,15 +2431,12 @@ def get_apk_id(apkfile):
|
||||||
:returns: triplet (appid, version code, version name)
|
:returns: triplet (appid, version code, version name)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
if use_androguard():
|
try:
|
||||||
try:
|
return get_apk_id_androguard(apkfile)
|
||||||
return get_apk_id_androguard(apkfile)
|
except zipfile.BadZipFile as e:
|
||||||
except zipfile.BadZipFile as e:
|
logging.error(apkfile + ': ' + str(e))
|
||||||
logging.error(apkfile + ': ' + str(e))
|
if 'aapt' in config:
|
||||||
if 'aapt' in config:
|
return get_apk_id_aapt(apkfile)
|
||||||
return get_apk_id_aapt(apkfile)
|
|
||||||
else:
|
|
||||||
return get_apk_id_aapt(apkfile)
|
|
||||||
|
|
||||||
|
|
||||||
def get_apk_id_androguard(apkfile):
|
def get_apk_id_androguard(apkfile):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue