On 13. 2. 2015 at 19:10:01, Christopher Meng wrote: > On Friday, February 13, 2015, Pierre-Yves Chibon <pingou@xxxxxxxxxxxx> > > wrote: > > On Fri, Feb 13, 2015 at 09:35:30AM +0100, Miroslav Suchy wrote: > > > > RHEL/EPEL users do not have DNF available, therefore they are unable to > > > > > build packages for Fedora Rawhide. There is however a workaround. Just > > > > > > change this line: > > > config_opts['package_manager'] = 'dnf' > > > > > > to this: > > > config_opts['package_manager'] = 'yum' > > > > > > or you can simply delete it because Yum is the default. > > > Or you can pass "--yum" to mock. > > > > Could it be an idea to check if /usr/bin/dnf exists (or if dnf can be > > found in > > $PATH) before calling dnf and if not a) warn the user and b) switch back > > to yum? > > > > This would make mock run out of the box for RHEL/EPEL users as well. > > 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) Not even this is going to be sufficient, as we plan to release a transition script /usr/bin/yum. This will be installed if people choose not to install yum and it will redirect user to /usr/bin/dnf, much like service redirects to systemctl. Thanks Jan -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct