mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 07:52:35 +03:00
Also make the Tags UCM complain about unknown package id
This commit is contained in:
parent
327422af09
commit
ee99d55e30
1 changed files with 4 additions and 0 deletions
|
@ -118,6 +118,7 @@ def check_tags(app, pattern):
|
|||
if flavour == 'yes':
|
||||
flavour = None
|
||||
|
||||
hpak = None
|
||||
htag = None
|
||||
hver = None
|
||||
hcode = "0"
|
||||
|
@ -144,10 +145,13 @@ def check_tags(app, pattern):
|
|||
logging.debug("Manifest exists. Found version {0} ({1})"
|
||||
.format(version, vercode))
|
||||
if int(vercode) > int(hcode):
|
||||
hpak = package
|
||||
htag = tag
|
||||
hcode = str(int(vercode))
|
||||
hver = version
|
||||
|
||||
if not hpak:
|
||||
return (None, "Couldn't find package ID", None)
|
||||
if hver:
|
||||
return (hver, hcode, htag)
|
||||
return (None, "Couldn't find any version information", None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue