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:
parent
c8e61aa02d
commit
75e9a9e176
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user