diff options
author | Chris Lumens <clumens@redhat.com> | 2012-09-24 15:10:27 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2012-09-25 09:59:31 -0400 |
commit | a829fe69de1d924a85a6222078066732e5de4d31 (patch) | |
tree | a39f56e9d75e068ef18eb13739af06d89d89bf56 /pyanaconda/ui | |
parent | 745e0d36b35fa3f7a9a3ad14cf8212edc83825a5 (diff) | |
download | anaconda-a829fe69de1d924a85a6222078066732e5de4d31.tar.gz anaconda-a829fe69de1d924a85a6222078066732e5de4d31.tar.xz anaconda-a829fe69de1d924a85a6222078066732e5de4d31.zip |
Add a progress message for quitting the installer.
We need this to quit when handling errors, since doing a sys.exit() from a
thread only kills the thread and not the main program.
Diffstat (limited to 'pyanaconda/ui')
-rw-r--r-- | pyanaconda/ui/gui/hubs/progress.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pyanaconda/ui/gui/hubs/progress.py b/pyanaconda/ui/gui/hubs/progress.py index 84453e5f4..9cb95eb63 100644 --- a/pyanaconda/ui/gui/hubs/progress.py +++ b/pyanaconda/ui/gui/hubs/progress.py @@ -28,6 +28,7 @@ from gi.repository import GLib, Gtk import itertools import os +import sys from pyanaconda.localization import expand_langs from pyanaconda.product import productName @@ -107,6 +108,8 @@ class ProgressHub(Hub): callback() return False + elif code == progress.PROGRESS_CODE_QUIT: + sys.exit(args[0]) q.task_done() |