[PATCH 4/4] Handle quit messages on the text progress UI hub (#895756).
Chris Lumens
clumens at redhat.com
Fri Apr 12 18:14:08 UTC 2013
Among other things, this stops us from displaying an exception that the user
has to deal with after they get a message shown about broken dependencies.
It just quits, like we intend.
---
pyanaconda/ui/tui/hubs/progress.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pyanaconda/ui/tui/hubs/progress.py b/pyanaconda/ui/tui/hubs/progress.py
index a7d8c1b..2be443b 100644
--- a/pyanaconda/ui/tui/hubs/progress.py
+++ b/pyanaconda/ui/tui/hubs/progress.py
@@ -91,6 +91,8 @@ class ProgressHub(TUIHub):
if self._stepped:
print('')
return True
+ elif code == progressQ.PROGRESS_CODE_QUIT:
+ sys.exit(args[0])
q.task_done()
return True
--
1.8.1.2
More information about the anaconda-patches
mailing list