[rhinstaller/anaconda/pulls/89 master] Set the GUI-selected environment in the ksdata (#1192100)

dashea installerbot-noreply at redhat.com
Mon Apr 27 13:33:16 UTC 2015


> @@ -290,7 +290,11 @@ def selectGroup(self, groupid, default=True, optional=False):
>          if grp in self.data.packages.excludedGroupList:
>              self.data.packages.excludedGroupList.remove(grp)
>  
> -        self.data.packages.groupList.append(grp)
> +        # If the group is part of the environment, no need to duplicate it in
> +        # the group list
> +        if self.data.packages.environment and \
> +                groupid not in self.environmentGroups(self.data.packages.environment):
> +            self.data.packages.groupList.append(grp)

This is ok because with this patch the environment gets added to the ksdata instead of just its groups, and the selected environment gets added to the payload via dnf.Base.environment_install or yum.selectEnvironment. I'll change the comment to "If the group is part of the environment, it is already selected as part of the environment. Do not duplicate it in the group list"

-- 
To view this pull request on github, visit https://github.com/rhinstaller/anaconda/pull/89#discussion_r29145757


More information about the anaconda-patches mailing list