<br><br>On Friday, February 13, 2015, Pierre-Yves Chibon <<a href="mailto:pingou@pingoured.fr">pingou@pingoured.fr</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Feb 13, 2015 at 09:35:30AM +0100, Miroslav Suchy wrote: </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> RHEL/EPEL users do not have DNF available, therefore they are unable to<br>
> build packages for Fedora Rawhide. There is however a workaround. Just<br>
> change this line:<br>
> config_opts['package_manager'] = 'dnf'<br>
> to this:<br>
> config_opts['package_manager'] = 'yum'<br>
> or you can simply delete it because Yum is the default.<br>
> Or you can pass "--yum" to mock.<br>
<br>
Could it be an idea to check if /usr/bin/dnf exists (or if dnf can be found in<br>
$PATH) before calling dnf and if not a) warn the user and b) switch back to yum?<br>
<br>
This would make mock run out of the box for RHEL/EPEL users as well.</blockquote><div><br></div><div>Mock needs to check if /usr/bin/dnf is a file instead of a symlink as well since I've created a symlink on my system. (a little bit strange though) </div><br><br>-- <br><br>Yours sincerely,<br>Christopher Meng<br><br><a href="http://cicku.me" target="_blank">http://cicku.me</a><br>