Merge commit 'origin/master' into mead
This commit is contained in:
commit
f5f488f5ff
1 changed files with 1 additions and 1 deletions
2
cli/koji
2
cli/koji
|
|
@ -740,7 +740,7 @@ def handle_chain_build(options, session, args):
|
|||
# check that the destination tag is in the inheritance tree of the build tag
|
||||
# otherwise there is no way that a chain-build can work
|
||||
ancestors = session.getFullInheritance(build_target['build_tag'])
|
||||
if dest_tag['id'] not in [ancestor['parent_id'] for ancestor in ancestors]:
|
||||
if dest_tag['id'] not in [build_target['build_tag']] + [ancestor['parent_id'] for ancestor in ancestors]:
|
||||
print _("Packages in destination tag %(dest_tag_name)s are not inherited by build tag %(build_tag_name)s" % build_target)
|
||||
print _("Target %s is not usable for a chain-build" % build_target['name'])
|
||||
return 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue