read_pkg_args(): allow appid_vercode.apk in addition to appid:vercode

This commit is contained in:
Felix C. Stegerman 2021-04-10 07:18:28 +00:00
parent 67757a3978
commit 0a4995cd3b

View file

@ -599,7 +599,9 @@ def read_pkg_args(appid_versionCode_pairs, allow_vercodes=False):
if not appid_versionCode_pairs:
return vercodes
apk_regex = re.compile(r'_(\d+)\.apk$')
for p in appid_versionCode_pairs:
p = apk_regex.sub(r':\1', p)
if allow_vercodes and ':' in p:
package, vercode = p.split(':')
try: