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

David Lehman dlehman at redhat.com
Mon Nov 5 22:24:47 UTC 2012


On Mon, 2012-11-05 at 17:17 -0500, Chris Lumens wrote:
> 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.

ACK

> ---
>  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])
>  




More information about the anaconda-patches mailing list