mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-03-18 15:06:42 -04:00
Support hex versionCode in build command line
Example: fdroid build net.gaast.giggity:0x200
This commit is contained in:
@@ -497,6 +497,11 @@ def read_pkg_args(appid_versionCode_pairs, allow_vercodes=False):
|
||||
for p in appid_versionCode_pairs:
|
||||
if allow_vercodes and ':' in p:
|
||||
package, vercode = p.split(':')
|
||||
try:
|
||||
i_vercode = int(vercode, 0)
|
||||
except ValueError:
|
||||
i_vercode = int(vercode)
|
||||
vercode = str(i_vercode)
|
||||
else:
|
||||
package, vercode = p, None
|
||||
if package not in vercodes:
|
||||
|
||||
Reference in New Issue
Block a user