[master] Wait for payload thread in TUI software spoke. (#1178214)
Samantha N. Bueno
sbueno+anaconda at redhat.com
Mon Jan 5 20:03:40 UTC 2015
We should wait for this to finish before attempting to access any
of the data from the dnf payload, otherwise a traceback will occur.
---
pyanaconda/ui/tui/spokes/software.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/tui/spokes/software.py b/pyanaconda/ui/tui/spokes/software.py
index ce069c9..eedc74b 100644
--- a/pyanaconda/ui/tui/spokes/software.py
+++ b/pyanaconda/ui/tui/spokes/software.py
@@ -57,7 +57,6 @@ class SoftwareSpoke(NormalTUISpoke):
def showable(self):
return isinstance(self.payload, PackagePayload)
-
@property
def status(self):
""" Where we are in the process """
@@ -107,6 +106,8 @@ class SoftwareSpoke(NormalTUISpoke):
""" Refresh screen. """
NormalTUISpoke.refresh(self, args)
+ threadMgr.wait(THREAD_PAYLOAD)
+
if not self.payload.baseRepo:
message = TextWidget(_("Installation source needs to be set up first."))
self._window.append(message)
@@ -128,7 +129,6 @@ class SoftwareSpoke(NormalTUISpoke):
name = self.payload.environmentDescription(env)[0]
displayed.append(CheckboxWidget(title="%s" % name, completed=(environments.index(env) == self._selection)))
- print(_("Base environment"))
def _prep(i, w):
""" Do some format magic for display. """
--
1.8.3.1
More information about the anaconda-patches
mailing list