[pykickstart 1/3] Add --install flag to repo command (#1119867)
Brian C. Lane
bcl at redhat.com
Fri Jul 25 15:37:44 UTC 2014
On Fri, Jul 25, 2014 at 08:18:19AM +0200, Vratislav Podzimek wrote:
> On Thu, 2014-07-24 at 18:34 -0700, Brian C. Lane wrote:
> > ---
> > pykickstart/commands/repo.py | 29 +++++++++++++++++++++++++++++
> > pykickstart/handlers/f21.py | 4 ++--
> > pykickstart/handlers/rhel7.py | 4 ++--
> > tests/commands/repo.py | 10 ++++++++++
> > 4 files changed, 43 insertions(+), 4 deletions(-)
> >
> > diff --git a/pykickstart/commands/repo.py b/pykickstart/commands/repo.py
> > index 6e0da76..3ee114c 100644
> > --- a/pykickstart/commands/repo.py
> > +++ b/pykickstart/commands/repo.py
> > @@ -132,6 +132,24 @@ RHEL6_RepoData = F14_RepoData
> >
> > F15_RepoData = F14_RepoData
> >
> > +class F21_RepoData(F14_RepoData):
> > + removedKeywords = F14_RepoData.removedKeywords
> > + removedAttrs = F14_RepoData.removedAttrs
> > +
> > + def __init__(self, *args, **kwargs):
> > + F14_RepoData.__init__(self, *args, **kwargs)
> > + self.install = kwargs.get("install", False)
> > +
> > + def _getArgsAsStr(self):
> > + retval = F14_RepoData._getArgsAsStr(self)
> > +
> > + if self.install:
> > + retval += " --install"
> > +
> > + return retval
> > +
> > +RHEL7_RepoData = F21_RepoData
> Do I understand it correctly that these patches are for both master and
> rhel7-branch then?
Right, I see I forgot to add branch details to my subject. I'm planning
on waiting until this goes into rhel7-branch, then I'll add it to
master. f21 is debatable and depends on how strict we want to be at that
time.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
More information about the anaconda-patches
mailing list