1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-05 10:40:10 +02:00

update: support versionCode values in hex

This commit is contained in:
Hans-Christoph Steiner 2018-07-13 12:01:34 +02:00
parent c8e61aa02d
commit 75e9a9e176

View File

@ -1231,7 +1231,11 @@ def scan_apk_androguard(apk, apkfile):
raise BuildException(_("Invalid APK"))
apk['packageName'] = apkobject.get_package()
apk['versionCode'] = int(apkobject.get_androidversion_code())
vcstr = apkobject.get_androidversion_code()
if vcstr.startswith('0x'):
apk['versionCode'] = int(vcstr, 16)
else:
apk['versionCode'] = int(vcstr)
apk['name'] = apkobject.get_app_name()
apk['versionName'] = common.ensure_final_value(apk['packageName'], arsc,