From 70d6accd5e0144fc7346062d4e91f4eb727986e5 Mon Sep 17 00:00:00 2001 From: Enrico Scholz Date: Sat, 27 Oct 2007 10:39:30 +0200 Subject: [PATCH] Allow chain-builds when building into the same tag --- cli/koji | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/cli/koji b/cli/koji index d694a7c..6ad6054 100755 --- a/cli/koji +++ b/cli/koji @@ -728,6 +728,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']) + ancestors.append({'parent_id' : build_target['build_tag']}) if dest_tag['id'] not in [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']) -- 1.5.5.1