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:
parent
15a15420f7
commit
a74922f56e
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user