mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 14:30:30 +03:00
checkupdates: skip when there is no match for version
... name regex in CheckUpdateData
This commit is contained in:
parent
99be8d679d
commit
88eac942ec
1 changed files with 8 additions and 2 deletions
|
|
@ -159,6 +159,8 @@ def check_tags(app, pattern):
|
|||
if codeex:
|
||||
m = re.search(codeex, filecontent)
|
||||
if not m:
|
||||
logging.debug(f"UpdateCheckData regex {codeex} for version code"
|
||||
f" has no match in tag {tag}")
|
||||
continue
|
||||
|
||||
vercode = m.group(1).strip()
|
||||
|
|
@ -176,8 +178,12 @@ def check_tags(app, pattern):
|
|||
version = tag
|
||||
if verex:
|
||||
m = re.search(verex, filecontent)
|
||||
if m:
|
||||
version = m.group(1)
|
||||
if not m:
|
||||
logging.debug(f"UpdateCheckData regex {verex} for version name"
|
||||
f" has no match in tag {tag}")
|
||||
continue
|
||||
|
||||
version = m.group(1)
|
||||
|
||||
logging.debug("UpdateCheckData found version {0} ({1})"
|
||||
.format(version, vercode))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue