Also make the Tags UCM complain about unknown package id

This commit is contained in:
Daniel Martí 2014-07-03 13:44:27 +02:00
parent 327422af09
commit ee99d55e30

View file

@ -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)