mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-06 17:31:07 +03:00
update: support versionCode values in hex
This commit is contained in:
parent
c8e61aa02d
commit
75e9a9e176
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue