[PATCH] Base whether an add-on is selected on the selectedGroups, not ksdata (#873092).

Chris Lumens clumens at redhat.com
Mon Nov 5 22:17:20 UTC 2012


ksdata only gets set at the beginning and ending of a spoke, not when things are
changed on the spoke without leaving.  Thus, ksdata is invalid.
---
 pyanaconda/ui/gui/spokes/software.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/software.py b/pyanaconda/ui/gui/spokes/software.py
index 34dd6b3..f861ec2 100644
--- a/pyanaconda/ui/gui/spokes/software.py
+++ b/pyanaconda/ui/gui/spokes/software.py
@@ -253,7 +253,7 @@ class SoftwareSelectionSpoke(NormalSpoke):
             for grp in self.payload.groups:
                 if self.payload.environmentHasOption(self.environment, grp) or (self.payload._isGroupVisible(grp) and self.payload._groupHasInstallableMembers(grp)):
                     (name, desc) = self.payload.groupDescription(grp)
-                    selected = self.payload.groupSelected(grp)
+                    selected = grp in self.selectedGroups
 
                     self._addonStore.append([selected, "<b>%s</b>\n%s" % (name, desc), grp])
 
-- 
1.7.11.2



More information about the anaconda-patches mailing list