1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-17 10:40:12 +02:00

[checkupdates] handle non matching regex

This commit is contained in:
Jochen Sprickerhof 2021-06-07 14:55:26 +02:00
parent 15a15420f7
commit a74922f56e

View File

@ -166,8 +166,7 @@ def check_tags(app, pattern):
filecontent = (build_dir / filecode).read_text()
m = re.search(codeex, filecontent)
if not m:
raise FDroidException("No RE match for version code")
if m:
vercode = m.group(1).strip()
version = "??"
@ -176,8 +175,7 @@ def check_tags(app, pattern):
filecontent = (build_dir / filever).read_text()
m = re.search(verex, filecontent)
if not m:
raise FDroidException("No RE match for version")
if m:
version = m.group(1)
if vercode: