Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Packaging (http://www.linux-archive.org/fedora-packaging/)
-   -   Allow installation of optional packages from the base group via ks. (http://www.linux-archive.org/fedora-packaging/641057-allow-installation-optional-packages-base-group-via-ks.html)

Chris Lumens 03-05-2012 02:50 PM

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


All times are GMT. The time now is 03:16 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.