[master/f20/rhel7] clear software environment (#1029536)
Vratislav Podzimek
vpodzime at redhat.com
Wed Nov 27 08:27:49 UTC 2013
On Tue, 2013-11-26 at 18:12 -0800, Brian C. Lane wrote:
> From: "Brian C. Lane" <bcl at redhat.com>
>
> Different sources may not have the same environments available. If a
> previously selected environment isn't available, reset it so that the
> first will be selected instead.
>
> Resolves: rhbz#1029536
> ---
> pyanaconda/ui/gui/spokes/software.py | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/pyanaconda/ui/gui/spokes/software.py b/pyanaconda/ui/gui/spokes/software.py
> index 6291fea..b7725e0 100644
> --- a/pyanaconda/ui/gui/spokes/software.py
> +++ b/pyanaconda/ui/gui/spokes/software.py
> @@ -242,6 +242,8 @@ class SoftwareSelectionSpoke(NormalSpoke):
>
> self._environmentStore = self.builder.get_object("environmentStore")
> self._environmentStore.clear()
> + if self.environment not in self.payload.environments:
> + self.environment = None
>
> clasess = []
> firstEnvironment = True
ACK.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list