#1524 set module_hotfixes=1 in yum.conf via tag config
Merged 2 years ago by mikem. Opened 2 years ago by tkopecek.
tkopecek/koji issue1521  into  master

file modified
+2
@@ -272,6 +272,8 @@ 

          opts['target_arch'] = self.target_arch

          if 'mock.package_manager' in self.config['extra']:

              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 self.internal_dev_setup is not None:

              opts['internal_dev_setup'] = bool(self.internal_dev_setup)

          output = koji.genMockConfig(self.name, self.br_arch, managed=True, **opts)

@@ -999,6 +999,8 @@ 

      buildcfg = session.getBuildConfig(opts['tag_name'], event=event)

      if 'mock.package_manager' in buildcfg['extra']:

          opts['package_manager'] = buildcfg['extra']['mock.package_manager']

+     if 'mock.yum.module_hotfixes' in buildcfg['extra']:

+         opts['module_hotfixes'] = self.config['extra']['mock.yum.module_hotfixes']

  

      output = koji.genMockConfig(name, arch, **opts)

      if options.ofile:

file modified
+2
@@ -1537,6 +1537,8 @@ 

      yc_parts.append("baseurl=%s\n" % urls[0])

      for url in urls[1:]:

          yc_parts.append("        %s\n" % url)

+     if opts.get('module_hotfixes'):

+         yc_parts.append("module_hotfixes=1\n")

      config_opts['yum.conf'] = ''.join(yc_parts)

  

      plugin_conf = {

New field in tag extra 'mock.yum.module_hotfixes' can be used to set
module_hotfixes=0/1 in yum.conf's inside mock's buildroots.

Fixes: https://pagure.io/koji/issue/1521

Should it be exposed in the output of cmd mock-config?

1 new commit added

  • reflect module_hotfixes also in CLI
2 years ago

Commit c90bf2a fixes this pull-request

Pull-Request has been merged by mikem

2 years ago