[PATCH1] Always show/run the TUI ProgressHub (#1008788)
Vratislav Podzimek
vpodzime at redhat.com
Tue Sep 17 09:40:06 UTC 2013
The TUI ProgressHub doesn't provide any spokes. However, we need to run it as it
takes care of the actual installation.
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
pyanaconda/ui/tui/hubs/__init__.py | 3 ++-
pyanaconda/ui/tui/hubs/progress.py | 3 +++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/pyanaconda/ui/tui/hubs/__init__.py b/pyanaconda/ui/tui/hubs/__init__.py
index 8f219c3..79ba2fe 100644
--- a/pyanaconda/ui/tui/hubs/__init__.py
+++ b/pyanaconda/ui/tui/hubs/__init__.py
@@ -48,6 +48,7 @@ class TUIHub(TUIObject, common.Hub):
self._spokes = {} # holds spokes referenced by their class name
self._keys = {} # holds spokes referenced by their user input key
self._spoke_count = 0
+ self._always_run = False
def setup(self, environment="anaconda"):
# look for spokes having category present in self.categories
@@ -76,7 +77,7 @@ class TUIHub(TUIObject, common.Hub):
self._spokes[spoke.__class__.__name__] = spoke
# only schedule the hub if it has some spokes
- return self._spoke_count != 0
+ return self._always_run or self._spoke_count != 0
def refresh(self, args = None):
"""This methods fills the self._window list by all the objects
diff --git a/pyanaconda/ui/tui/hubs/progress.py b/pyanaconda/ui/tui/hubs/progress.py
index 82ad263..9340bcf 100644
--- a/pyanaconda/ui/tui/hubs/progress.py
+++ b/pyanaconda/ui/tui/hubs/progress.py
@@ -38,6 +38,9 @@ class ProgressHub(TUIHub):
TUIHub.__init__(self, app, ksdata, storage, payload, instclass)
self._stepped = False
+ # this hub should run even if it doesn't provide any spokes
+ self._always_run = True
+
def _update_progress(self):
"""Handle progress updates from install thread."""
--
1.7.11.7
More information about the anaconda-patches
mailing list