Support deleted build tag in taskinfo.
This commit handles a situation when build tag is removed for a task for which the taskinfo is called. Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
This commit is contained in:
parent
cbee2ddb4f
commit
ecef2ea1d0
1 changed files with 6 additions and 1 deletions
|
|
@ -4494,7 +4494,12 @@ def _do_parseTaskParams(session, method, task_id, topdir):
|
|||
lines.append("SCM URL: %s" % params[0])
|
||||
elif method == 'buildArch':
|
||||
lines.append("SRPM: %s/work/%s" % (topdir, params[0]))
|
||||
lines.append("Build Tag: %s" % session.getTag(params[1])['name'])
|
||||
taginfo = session.getTag(params[1])
|
||||
if taginfo:
|
||||
tagname = taginfo['name']
|
||||
else:
|
||||
tagname = str(params[1]) + " (deleted)"
|
||||
lines.append("Build Tag: %s" % tagname)
|
||||
lines.append("Build Arch: %s" % params[2])
|
||||
lines.append("SRPM Kept: %r" % params[3])
|
||||
if len(params) > 4:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue