[PATCH 2/2] setup default environment in initialize
Brian C. Lane
bcl at redhat.com
Sat Feb 15 00:30:06 UTC 2014
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
--
1.8.5.3
More information about the anaconda-patches
mailing list