[master/f20/rhel7] clear software environment (#1029536)
Brian C. Lane
bcl at redhat.com
Wed Nov 27 02:12:23 UTC 2013
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
--
1.8.3.1
More information about the anaconda-patches
mailing list