mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 12:12:47 +00:00
add to releaser self.config which will contains values from global and pkg config
This commit is contained in:
parent
7aa6832011
commit
e1558c06c8
1 changed files with 3 additions and 1 deletions
|
@ -29,6 +29,7 @@ import shutil
|
|||
from tito.common import *
|
||||
from tito.buildparser import BuildTargetParser
|
||||
from tito.exception import TitoException
|
||||
from tito.config_object import ConfigObject
|
||||
|
||||
DEFAULT_KOJI_OPTS = "build --nowait"
|
||||
DEFAULT_CVS_BUILD_DIR = "cvswork"
|
||||
|
@ -39,7 +40,7 @@ PROTECTED_BUILD_SYS_FILES = ('branch', 'CVS', '.cvsignore', 'Makefile', 'sources
|
|||
RSYNC_USERNAME = 'RSYNC_USERNAME' # environment variable name
|
||||
|
||||
|
||||
class Releaser(object):
|
||||
class Releaser(ConfigObject):
|
||||
"""
|
||||
Parent class of all releasers.
|
||||
|
||||
|
@ -53,6 +54,7 @@ class Releaser(object):
|
|||
pkg_config=None, global_config=None, user_config=None,
|
||||
target=None, releaser_config=None, no_cleanup=False, test=False, auto_accept=False):
|
||||
|
||||
ConfigObject.__init__(self, pkg_config=pkg_config, global_config=global_config)
|
||||
self.builder_args = self._parse_builder_args(releaser_config, target)
|
||||
if test:
|
||||
self.builder_args['test'] = True # builder must know to build from HEAD
|
||||
|
|
Loading…
Add table
Reference in a new issue