mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 23:12:46 +03:00
read_pkg_args(): allow appid_vercode.apk in addition to appid:vercode
This commit is contained in:
parent
67757a3978
commit
0a4995cd3b
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue