FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 03-05-2012, 03:45 PM
David Cantrell
 
Default 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
 

Thread Tools




All times are GMT. The time now is 02:54 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org