Mock, Rawhide and DNF

Christopher Meng cickumqt at gmail.com
Fri Feb 13 11:10:01 UTC 2015


On Friday, February 13, 2015, Pierre-Yves Chibon <pingou at pingoured.fr>
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)


-- 

Yours sincerely,
Christopher Meng

http://cicku.me
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/devel/attachments/20150213/70396ad8/attachment.html>


More information about the devel mailing list