Allow installation of optional packages from the base group via ks.
Ack.
On Mon, Mar 05, 2012 at 10:50:44AM -0500, Chris Lumens wrote:
> Resolves: rhbz#727186
> ---
> kickstart.py | 7 ++++++-
> 1 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/kickstart.py b/kickstart.py
> index 94a85f8..ebdca64 100644
> --- a/kickstart.py
> +++ b/kickstart.py
> @@ -1487,7 +1487,12 @@ def selectPackages(anaconda):
> ksdata.packages.groupList.insert(0, Group("Core"))
>
> if ksdata.packages.addBase:
> - ksdata.packages.groupList.insert(1, Group("Base"))
> + # Only add @base if it's not already in the group list. If the
> + # %packages section contains something like "@base --optional",
> + # addBase will take effect first and yum will think the group is
> + # already selected.
> + if not Group("Base") in ksdata.packages.groupList:
> + ksdata.packages.groupList.insert(1, Group("Base"))
> else:
> log.warning("not adding Base group")
>
> --
> 1.7.8.4
>
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@redhat.com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list
--
David Cantrell <dcantrell@redhat.com>
Supervisor, Installer Engineering Team
Red Hat, Inc. | Westford, MA | EST5EDT
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
|