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 > Redhat > Fedora Packaging

 
 
LinkBack Thread Tools
 
Old 03-05-2012, 02:50 PM
Chris Lumens
 
Default Allow installation of optional packages from the base group via ks.

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
 

Thread Tools




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

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