1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-08-15 19:00:11 +02:00

Package names can contain numbers too

This commit is contained in:
Daniel Martí 2013-12-22 12:24:53 +01:00
parent 94e686c46c
commit ed482bf242

View File

@ -175,7 +175,7 @@ def apknameinfo(filename):
global apk_regex
filename = os.path.basename(filename)
if apk_regex is None:
apk_regex = re.compile(r"^([a-zA-Z\.]+)_([0-9]+)\.apk$")
apk_regex = re.compile(r"^([a-zA-Z0-9\.]+)_([0-9]+)\.apk$")
m = apk_regex.match(filename)
try:
result = (m.group(1), m.group(2))