make mock depsolver policy configurable
Fixes: https://pagure.io/koji/issue/826
This commit is contained in:
parent
62998b0885
commit
ac38549992
3 changed files with 6 additions and 0 deletions
|
|
@ -290,6 +290,8 @@ class BuildRoot(object):
|
|||
opts['package_manager'] = self.config['extra']['mock.package_manager']
|
||||
if 'mock.yum.module_hotfixes' in self.config['extra']:
|
||||
opts['module_hotfixes'] = self.config['extra']['mock.yum.module_hotfixes']
|
||||
if 'mock.yum.best' in self.config['extra']:
|
||||
opts['yum_best'] = int(self.config['extra']['mock.yum.best'])
|
||||
# Append opts['plugin_conf'] to enable Mock package signing
|
||||
if 'mock.plugin_conf.sign_enable' in self.config['extra']:
|
||||
# check rest of configuration
|
||||
|
|
|
|||
|
|
@ -1024,6 +1024,8 @@ def anon_handle_mock_config(goptions, session, args):
|
|||
opts['package_manager'] = buildcfg['extra']['mock.package_manager']
|
||||
if 'mock.yum.module_hotfixes' in buildcfg['extra']:
|
||||
opts['module_hotfixes'] = buildcfg['extra']['mock.yum.module_hotfixes']
|
||||
if 'mock.yum.best' in buildcfg['extra']:
|
||||
opts['yum_best'] = int(buildcfg['extra']['mock.yum.best'])
|
||||
if 'mock.bootstrap_image' in buildcfg['extra']:
|
||||
opts['use_bootstrap_image'] = True
|
||||
opts['bootstrap_image'] = buildcfg['extra']['mock.bootstrap_image']
|
||||
|
|
|
|||
|
|
@ -1641,6 +1641,8 @@ name=build
|
|||
yc_parts.append(" %s\n" % url)
|
||||
if opts.get('module_hotfixes'):
|
||||
yc_parts.append("module_hotfixes=1\n")
|
||||
if opts.get('yum_best'):
|
||||
yc_parts.append("best=%s\n" % int(opts['yum_best']))
|
||||
config_opts['yum.conf'] = ''.join(yc_parts)
|
||||
|
||||
plugin_conf = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue