mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 16:22:55 +00:00
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:
parent
cd80781178
commit
6ba768ab15
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue