1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-10 01:10:11 +01:00

Version names can contain any character

This commit is contained in:
Daniel Martí 2013-05-14 21:23:36 +02:00
parent f6fb7416c5
commit 13e760ece6

View File

@ -839,10 +839,10 @@ def description_html(lines,linkres):
# All values returned are strings. # All values returned are strings.
def parse_androidmanifest(app_dir): def parse_androidmanifest(app_dir):
vcsearch = re.compile(r'.*android:versionCode="([^"]+)".*').search vcsearch = re.compile(r'.*android:versionCode="([0-9]+)".*').search
vnsearch = re.compile(r'.*android:versionName="([\.0-9a-zA-Z]+)".*').search vnsearch = re.compile(r'.*android:versionName="([^@]+)".*').search
psearch = re.compile(r'.*package="([^"]+)".*').search psearch = re.compile(r'.*package="([^"]+)".*').search
vnsearch_xml = re.compile(r'.*"app_version">([\.0-9a-zA-Z]+)<.*').search vnsearch_xml = re.compile(r'.*"app_version">([^<]+)<.*').search
version = None version = None
vercode = None vercode = None
package = None package = None