Mock, Rawhide and DNF

Kevin Kofler kevin.kofler at
Mon Feb 16 22:29:20 UTC 2015

Clark Williams wrote:
> If the above are correct and the only issue here is that we have
> different depsolving with yum versus dnf, let's detect that we're
> building a Fedora package on EPEL and print a warning to that effect. I
> don't think it does us any good to ship a configuration that won't work
> (i.e. setting config_opts['package_manager'] = 'dnf' on an EPEL host).
> It's either that or fail the build immediately and I'm more in favor of
> printing a warning and continuing.

Maybe the code should just do something like:
if config_opts['package_manager'] == 'dnf' and not have_dnf:
  warning('dnf not found, falling back to yum')
  warning('depsolving results may differ')
  config_opts['package_manager'] = 'yum'

        Kevin Kofler

More information about the devel mailing list