#1595 enable dnf_warning in mock config
Merged 6 months ago by mikem. Opened 6 months ago by tkopecek.
tkopecek/koji issue1594  into  master

file modified
+3 -1

@@ -1485,7 +1485,9 @@ 

          'rpmbuild_networking': opts.get('use_host_resolv', False),

          'use_host_resolv': opts.get('use_host_resolv', False),

          # Don't let a build last more than 24 hours

-         'rpmbuild_timeout': opts.get('rpmbuild_timeout', 86400)

+         'rpmbuild_timeout': opts.get('rpmbuild_timeout', 86400),

+         # warn if yum is used instead of dnf

+         'dnf_warning': True,

      }

      if opts.get('package_manager'):

          config_opts['package_manager'] = opts['package_manager']

@@ -3,6 +3,7 @@ 

  config_opts['basedir'] = '/var/lib/mock'

  config_opts['chroot_setup_cmd'] = 'groupinstall build'

  config_opts['chroothome'] = '/builddir'

+ config_opts['dnf_warning'] = True

  config_opts['internal_dev_setup'] = False

  config_opts['root'] = 'ROOTNAME'

  config_opts['rpmbuild_networking'] = False

@@ -3,6 +3,7 @@ 

  config_opts['basedir'] = '/var/lib/mock'

  config_opts['chroot_setup_cmd'] = 'groupinstall build'

  config_opts['chroothome'] = '/builddir'

+ config_opts['dnf_warning'] = True

  config_opts['internal_dev_setup'] = True

  config_opts['root'] = 'ROOTNAME'

  config_opts['rpmbuild_networking'] = False

@@ -3,6 +3,7 @@ 

  config_opts['basedir'] = '/var/lib/mock'

  config_opts['chroot_setup_cmd'] = 'groupinstall build'

  config_opts['chroothome'] = '/builddir'

+ config_opts['dnf_warning'] = True

  config_opts['root'] = 'ROOTNAME'

  config_opts['rpmbuild_networking'] = False

  config_opts['rpmbuild_timeout'] = 86400