From 3f76b3309c95368194dd6b3ecec2092505710155 Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Nov 24 2014 04:52:30 +0000 Subject: get the right koji buildtarget based on the sig branch --- diff --git a/src/centpkg/__init__.py b/src/centpkg/__init__.py index a413997..939a1c3 100644 --- a/src/centpkg/__init__.py +++ b/src/centpkg/__init__.py @@ -83,10 +83,15 @@ class Commands(pyrpkg.Commands): def load_target(self): """ This sets the target attribute (used for mock and koji) """ - # This is a hack, eventually we will want to use non-epel mock configs - # We use the epel configs for now because they are the only distributed - # mock configs that build against EL mock trees - self._target = 'epel-{0}'.format(self.distval) + + # Distribution branches start with c and may or may not end in -plus + # otherwise, it's a sig branch + if not self._is_sigbranch(): + # send distribution packages to build on the the bananas tags for now + self._target = 'bananas{0}-{1}'.format(self.distval, self.disttag) + else: + # sig packages are built in the tag that matches the git branch + self._target = '{0}-el{1}'.format(self.branch_merge, self.distval) # These are the commands defined in the base pyrpkg.Commands class # and have been implemented here