[PATCH rhel6-branch, master] Allow installation of optional packages from the base group via ks.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux