mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-05 08:51:06 +03:00
[checkupdates] handle non matching regex
This commit is contained in:
parent
15a15420f7
commit
a74922f56e
1 changed files with 4 additions and 6 deletions
|
@ -166,9 +166,8 @@ 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")
|
||||
vercode = m.group(1).strip()
|
||||
if m:
|
||||
vercode = m.group(1).strip()
|
||||
|
||||
version = "??"
|
||||
if filever:
|
||||
|
@ -176,9 +175,8 @@ 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")
|
||||
version = m.group(1)
|
||||
if m:
|
||||
version = m.group(1)
|
||||
|
||||
if vercode:
|
||||
logging.debug("UpdateCheckData found version {0} ({1})"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue