[lorax 1/7] Switch lorax to use dnf instead of yum

Vratislav Podzimek vpodzime at redhat.com
Mon Feb 16 10:43:30 UTC 2015


On Wed, 2015-02-11 at 16:59 -0800, Brian C. Lane wrote:
> On Wed, Feb 11, 2015 at 10:40:06AM -0800, Brian C. Lane wrote:
> > pylorax users will need to change to using dnf and pass a dnf.Base()
> > object as the dbo argument instead of a yum object as the yum or ybo
> > argument. See the lorax script for an example of how to do this.
> > 
> > The lorax cmdline argument --excludepkgs has been removed since dnf
> > doesn't appear to have any way to support it and packages should be
> > controlled using templates anyway.
> > ---
> >  lorax.spec                 |   2 +-
> >  src/pylorax/__init__.py    |  30 ++++-----
> >  src/pylorax/dnfhelper.py   | 107 ++++++++++++++++++++++++++++++
> >  src/pylorax/ltmpl.py       |  80 +++++++++++++++++-----
> >  src/pylorax/treebuilder.py |  24 ++++---
> >  src/pylorax/yumhelper.py   | 127 -----------------------------------
> >  src/sbin/lorax             | 161 +++++++++++++++++++++------------------------
> >  7 files changed, 274 insertions(+), 257 deletions(-)
> >  create mode 100644 src/pylorax/dnfhelper.py
> >  delete mode 100644 src/pylorax/yumhelper.py
> 
> Pull request for this is here:
> https://github.com/rhinstaller/lorax/pull/1
> 
> And the corresponding pungi changes are here:
> https://github.com/bcl/pungi/pull/1
> 
> 
> I'm planning on branching Lorax for F22 on Friday and these changes
> will go into rawhide. I'm still undecided about whether or not to leave
> F22 as yum or not.
Other than those two questions for PATCH 1/7 these all look good to me.
I doubt the releng guys would like to start using dnf now, but could you
please at least create a f22-dnf-branch upstream branch next to the
f22-branch so that people like me may test the DNF backend when doing
custom F22 builds?

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list