mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
Support hex versionCode in build command line
Example: fdroid build net.gaast.giggity:0x200
This commit is contained in:
parent
b83c3c9e18
commit
0e071a689d
1 changed files with 5 additions and 0 deletions
|
@ -497,6 +497,11 @@ def read_pkg_args(appid_versionCode_pairs, allow_vercodes=False):
|
||||||
for p in appid_versionCode_pairs:
|
for p in appid_versionCode_pairs:
|
||||||
if allow_vercodes and ':' in p:
|
if allow_vercodes and ':' in p:
|
||||||
package, vercode = p.split(':')
|
package, vercode = p.split(':')
|
||||||
|
try:
|
||||||
|
i_vercode = int(vercode, 0)
|
||||||
|
except ValueError:
|
||||||
|
i_vercode = int(vercode)
|
||||||
|
vercode = str(i_vercode)
|
||||||
else:
|
else:
|
||||||
package, vercode = p, None
|
package, vercode = p, None
|
||||||
if package not in vercodes:
|
if package not in vercodes:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue