[PATCH 2/2] setup default environment in initialize

Vratislav Podzimek vpodzime at redhat.com
Mon Feb 17 06:49:38 UTC 2014


On Fri, 2014-02-14 at 16:30 -0800, Brian C. Lane wrote:
> otherwise it will get reset every time you visit the spoke.
> ---
>  pyanaconda/ui/gui/spokes/software.py | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/pyanaconda/ui/gui/spokes/software.py b/pyanaconda/ui/gui/spokes/software.py
> index 1b26b28..5ba45ef 100644
> --- a/pyanaconda/ui/gui/spokes/software.py
> +++ b/pyanaconda/ui/gui/spokes/software.py
> @@ -206,8 +206,8 @@ class SoftwareSelectionSpoke(NormalSpoke):
>  
>          hubQ.send_message(self.__class__.__name__, _("Downloading group metadata..."))
>  
> -        # we have no way to select environments with kickstart right now
> -        # so don't try.
> +        self.environment = self.data.packages.environment
> +
>          if flags.automatedInstall and self.data.packages.seen:
>              # We don't want to do a full refresh, just join the metadata thread
>              threadMgr.wait(constants.THREAD_PAYLOAD_MD)
> @@ -284,8 +284,6 @@ class SoftwareSelectionSpoke(NormalSpoke):
>  
>          threadMgr.wait(constants.THREAD_PAYLOAD_MD)
>  
> -        self.environment = self.data.packages.environment
> -
>          if self.environment not in self.payload.environments:
>              self.environment = None
This one looks good to me.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list