mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
Merge branch 'checkupdates' into 'master'
checkupdates: skip when there is no match for version See merge request fdroid/fdroidserver!1321
This commit is contained in:
commit
b5ec531e72
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,7 +178,11 @@ def check_tags(app, pattern):
|
|||
version = tag
|
||||
if verex:
|
||||
m = re.search(verex, filecontent)
|
||||
if m:
|
||||
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})"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue