From 6ba768ab156285625c55ffac12abec266c121a9c Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Jul 05 2014 10:00:14 +0000 Subject: Redefine the "target" used for mock and koji builds. This redefinition temporarily uses the epel mock configs since they are the only EL configs that are readily distributed. This is where we can make changes later. --- diff --git a/src/centpkg/__init__.py b/src/centpkg/__init__.py index adfd309..21a6e2a 100644 --- a/src/centpkg/__init__.py +++ b/src/centpkg/__init__.py @@ -72,6 +72,13 @@ class Commands(pyrpkg.Commands): raise pyrpkg.rpkgError('No spec file found.') + 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) + # These are the commands defined in the base pyrpkg.Commands class # and have been implemented here