mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-08 08:20:28 +03:00
[checkupdates] UpdateCheckData tag for verocode if no regex
Use the tag as the version code if no regex was specified. This allows: UpdateCheckData: '|||' meaning the tag should be used for version code and name.
This commit is contained in:
parent
0c484f927e
commit
cebdcdd67c
2 changed files with 13 additions and 4 deletions
|
|
@ -171,11 +171,13 @@ def check_tags(app, pattern):
|
|||
else:
|
||||
filecontent = tag
|
||||
|
||||
m = re.search(codeex, filecontent)
|
||||
if not m:
|
||||
continue
|
||||
vercode = tag
|
||||
if codeex:
|
||||
m = re.search(codeex, filecontent)
|
||||
if not m:
|
||||
continue
|
||||
|
||||
vercode = m.group(1).strip()
|
||||
vercode = m.group(1).strip()
|
||||
|
||||
if filever:
|
||||
if filever != '.':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue