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.
This commit is contained in:
Brian Stinson 2014-07-05 05:00:14 -05:00 committed by Johnny Hughes
parent cd80781178
commit 6ba768ab15

View file

@ -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