<br><br>On Friday, February 13, 2015, Pierre-Yves Chibon &lt;<a href="mailto:pingou@pingoured.fr">pingou@pingoured.fr</a>&gt; 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">
&gt; RHEL/EPEL users do not have DNF available, therefore they are unable to<br>
&gt; build packages for Fedora Rawhide. There is however a workaround. Just<br>
&gt; change this line:<br>
&gt;   config_opts[&#39;package_manager&#39;] = &#39;dnf&#39;<br>
&gt; to this:<br>
&gt;   config_opts[&#39;package_manager&#39;] = &#39;yum&#39;<br>
&gt; or you can simply delete it because Yum is the default.<br>
&gt; Or you can pass &quot;--yum&quot; 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&#39;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>