[pykickstart 1/3] Add --install flag to repo command (#1119867)
Vratislav Podzimek
vpodzime at redhat.com
Fri Jul 25 06:18:19 UTC 2014
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?
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list