From 2e64be3129045e9d80ef1d6c84cb5894d6da8461 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Mon, 1 Dec 2008 16:16:43 -0800 Subject: [PATCH] Handle chain-build cases where the build tag is the same as the dest tag. --- cli/koji | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/koji b/cli/koji index 0c4de7ec..9f4a1e65 100755 --- a/cli/koji +++ b/cli/koji @@ -733,7 +733,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