copy extra information for a tag cloned from primary koji

This commit is contained in:
Dan Horák 2015-12-16 11:43:35 +01:00 committed by Mike McLean
parent 80186d70ef
commit 880a57730f

View file

@ -970,6 +970,12 @@ class BuildTracker(object):
#we don't need a target, we trigger our own repo creation and
#pass that repo_id to the build call
#session.createBuildTarget(taginfo['name'], taginfo['id'], taginfo['id'])
# duplicate also extra information for a tag (eg. packagemanager setting)
rtaginfo = remote.getTag(build.br_tag)
if 'extra' in rtaginfo:
opts = {}
opts['extra'] = rtaginfo['extra']
session.editTag2(our_tag, **opts)
else:
parents = session.getInheritanceData(taginfo['id'])
if parents: